Class DataAccessCommand
- Namespace
- JJMasterData.Commons.Data
- Assembly
- JJMasterData.Commons.dll
[PublicAPI]
public class DataAccessCommand
- Inheritance
-
DataAccessCommand
- Inherited Members
-
Constructors
DataAccessCommand()
public DataAccessCommand()
DataAccessCommand(string)
public DataAccessCommand(string sql)
Parameters
sql
string
DataAccessCommand(string, List<DataAccessParameter>)
public DataAccessCommand(string sql, List<DataAccessParameter> parameters)
Parameters
sql
string
parameters
List<DataAccessParameter>
DataAccessCommand(string, List<DataAccessParameter>, CommandType)
public DataAccessCommand(string sql, List<DataAccessParameter> parameters, CommandType type)
Parameters
sql
string
parameters
List<DataAccessParameter>
type
CommandType
Properties
Parameters
[JsonProperty("parameters")]
public List<DataAccessParameter> Parameters { get; }
Property Value
- List<DataAccessParameter>
Sql
[JsonProperty("sql")]
[Display(Name = "Sql Command")]
public string Sql { get; set; }
Property Value
- string
Type
[JsonProperty("cmdType")]
public CommandType Type { get; set; }
Property Value
- CommandType
Methods
AddParameter(string, object?, DbType)
public void AddParameter(string name, object? value, DbType dbType)
Parameters
name
string
value
object
dbType
DbType
DeepCopy()
public DataAccessCommand DeepCopy()
Returns
- DataAccessCommand
public static DataAccessCommand FromFormattableString(FormattableString formattableString)
Parameters
formattableString
FormattableString
Returns
- DataAccessCommand
Operators
public static explicit operator DataAccessCommand(FormattableString query)
Parameters
query
FormattableString
Returns
- DataAccessCommand