Show / Hide Table of Contents

Class ServiceRef<TService>

A service reference.

Inheritance
System.Object
RefBase
ServiceRef<TService>
Implements
IServiceRef<TService>
IServiceRef
Inherited Members
RefBase.RefFieldName
RefBase.GetEntityPropertyValue(String)
RefBase.SetEntityPropertyValue(String, Object)
RefBase.GetContainerEntity()
RefBase.GetContainerEntityEntry()
RefBase.GetDataContext(IEntityEntry)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data
Assembly: Kephas.Data.dll
Syntax
public class ServiceRef<TService> : RefBase, IServiceRef<TService>, IServiceRef
Type Parameters
Name Description
TService

Type of the referenced service.

Constructors

| Improve this Doc View Source

ServiceRef(Object, String)

Initializes a new instance of the ServiceRef<TService> class.

Declaration
public ServiceRef(object containerEntity, string refFieldName)
Parameters
Type Name Description
System.Object containerEntity

The entity containing the reference.

System.String refFieldName

Name of the reference service property.

Properties

| Improve this Doc View Source

ServiceName

Gets or sets the name of the referenced service.

Declaration
public virtual string ServiceName { get; set; }
Property Value
Type Description
System.String

The name of the referenced service.

| Improve this Doc View Source

ServiceType

Gets the type of the referenced service.

Declaration
public Type ServiceType { get; }
Property Value
Type Description
System.Type

The type of the referenced service.

Methods

| Improve this Doc View Source

GetNamedServiceProvider()

Gets the named service provider.

Declaration
protected virtual INamedServiceProvider GetNamedServiceProvider()
Returns
Type Description
INamedServiceProvider

The named service provider.

| Improve this Doc View Source

GetService()

Gets the referenced service.

Declaration
public virtual TService GetService()
Returns
Type Description
TService

The referenced service.

Explicit Interface Implementations

| Improve this Doc View Source

IServiceRef.GetService()

Gets the referenced service.

Declaration
object IServiceRef.GetService()
Returns
Type Description
System.Object

The referenced service.

Implements

IServiceRef<TService>
IServiceRef

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX