Interface IModelFactory
Interface for factory, which know materialize model from database.
Namespace: Kros.KORM.Materializer
Assembly: Kros.KORM.dll
Syntax
public interface IModelFactory
Methods
GetFactory<T>(IDataReader)
Gets the factory for creating and filling model.
Declaration
Func<IDataReader, T> GetFactory<T>(IDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.Data.IDataReader | reader | Reader from fill model. |
Returns
Type | Description |
---|---|
System.Func<System.Data.IDataReader, T> | Factory for creating and filling model. |
Type Parameters
Name | Description |
---|---|
T | Type of model class. |