Class DataCommandFactory<TCommand>
A data command factory.
Inheritance
System.Object
DataCommandFactory<TCommand>
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.Commands.Factory
Assembly: Kephas.Data.dll
Syntax
public class DataCommandFactory<TCommand> : IDataCommandFactory<TCommand>, IDataCommandFactory where TCommand : IDataCommand
Type Parameters
Name | Description |
---|---|
TCommand | Type of the command. |
Constructors
| Improve this Doc View SourceDataCommandFactory(ICollection<IExportFactory<TCommand, DataCommandMetadata>>)
Initializes a new instance of the DataCommandFactory<TCommand> class.
Declaration
public DataCommandFactory(ICollection<IExportFactory<TCommand, DataCommandMetadata>> commandFactories)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<IExportFactory<TCommand, DataCommandMetadata>> | commandFactories | The command factories. |
Methods
| Improve this Doc View SourceGetCommandFactory(Type)
Gets the command factory for the given data context type.
Declaration
public Func<IDataCommand> GetCommandFactory(Type dataContextType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | dataContextType | Type of the data context. |
Returns
Type | Description |
---|---|
System.Func<IDataCommand> | The command factory for the indicated command. |