Class SqlInsertCommandBuilder
Provides an implementation for sql insert command builder objects.
Inherited Members
Paradigm.ORM.Data.CommandBuilders.CommandBuilderBase.GetPropertyNames(IEnumerable<>)
Paradigm.ORM.Data.CommandBuilders.CommandBuilderBase.GetDbParameterNames(IEnumerable<>, System.String)
Paradigm.ORM.Data.CommandBuilders.CommandBuilderBase.GetDbParameterNamesAndValues(IEnumerable<>, System.String)
Paradigm.ORM.Data.CommandBuilders.CommandBuilderBase.PopulateParameters(IEnumerable<>)
Namespace: Paradigm.ORM.Data.SqlServer.CommandBuilders
Assembly: Paradigm.ORM.Data.SqlServer.dll
Syntax
public class SqlInsertCommandBuilder : CommandBuilderBase, IInsertCommandBuilder, ICommandBuilder, IDisposable
Constructors
| Improve this Doc View SourceSqlInsertCommandBuilder(IDatabaseConnector, ITableDescriptor)
Initializes a new instance of the SqlInsertCommandBuilder class.
Declaration
public SqlInsertCommandBuilder(IDatabaseConnector connector, ITableDescriptor descriptor)
Parameters
Type | Name | Description |
---|---|---|
IDatabaseConnector | connector | A database connector. |
ITableDescriptor | descriptor | A table type descriptor. |
Methods
| Improve this Doc View SourceGetCommand(IValueProvider)
Gets an insert command query ready to insert one entity.
Declaration
public IDatabaseCommand GetCommand(IValueProvider valueProvider)
Parameters
Type | Name | Description |
---|---|---|
IValueProvider | valueProvider |
Returns
Type | Description |
---|---|
IDatabaseCommand | An insert command already parametrized to insert the entity. |
Implements
IDisposable