Class SqlSelectOneCommandBuilder
Provides an implementation for sql select one 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 SqlSelectOneCommandBuilder : CommandBuilderBase, ISelectOneCommandBuilder, ICommandBuilder, IDisposable
Constructors
| Improve this Doc View SourceSqlSelectOneCommandBuilder(IDatabaseConnector, ITableDescriptor)
Initializes a new instance of the SqlSelectOneCommandBuilder class.
Declaration
public SqlSelectOneCommandBuilder(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(Object[])
Gets the select one command ready to execute the select query.
Declaration
public IDatabaseCommand GetCommand(params object[] ids)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | ids | The id values of the entity that will be selected from the database. |
Returns
Type | Description |
---|---|
IDatabaseCommand | A select command already parametrized to execute. |
Implements
IDisposable