Class DataConversionContextExtensions
Extension methods for IDataConversionContext.
Inheritance
System.Object
DataConversionContextExtensions
Inherited Members
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.Conversion
Assembly: Kephas.Data.dll
Syntax
public static class DataConversionContextExtensions
Methods
| Improve this Doc View SourceGetDataContext(IDataConversionContext, Object)
Gets the data context for the provided entity.
Declaration
public static IDataContext GetDataContext(this IDataConversionContext conversionContext, object entity)
Parameters
Type | Name | Description |
---|---|---|
IDataConversionContext | conversionContext | The conversionContext to act on. |
System.Object | entity | The entity. |
Returns
Type | Description |
---|---|
IDataContext | The data context. |
GetDataContext(IDataConversionContext, Type)
Gets the data context for the provided entity type.
Declaration
public static IDataContext GetDataContext(this IDataConversionContext conversionContext, Type entityType)
Parameters
Type | Name | Description |
---|---|---|
IDataConversionContext | conversionContext | The conversionContext to act on. |
System.Type | entityType | Type of the entity. |
Returns
Type | Description |
---|---|
IDataContext | The data context. |