public SqlPropertyConfigurationBuilder(ISqlPropertyConfiguration propertyConfiguration)
     : base(propertyConfiguration)
 {
 }
示例#2
0
 private Expression <Func <object, IDatabaseCommandParameter> > GetSqlParameter(ISqlPropertyConfiguration config, string paramName, bool isNullable = true)
 {
     return((value) => _sqlClassProvider.CreateDatabaseCommandParameter(paramName, value, config.SqlDbType.Value, isNullable));
 }
示例#3
0
 protected override IPropertyConfigurationBuilder <TProperty, ISqlPropertyConfiguration> CreatePropertyConfigurationBuilder <TProperty>(
     ISqlPropertyConfiguration propertyConfiguration)
 {
     return(new SqlPropertyConfigurationBuilder <TResource, TProperty>(propertyConfiguration));
 }
示例#4
0
 public Func <object, IDatabaseCommandParameter> GetPrimaryKeySqlParameter(ISqlPropertyConfiguration primaryIdentifierConfig)
 {
     return(GetSqlParameter(primaryIdentifierConfig, _sqlParamaterProvider.GetPrimaryKeyParameterName(), false).Compile());
 }