Example #1
0
 internal InsertValue(SpryInsert <TDto> spry, SpryInsertTable <TDto> table)
 {
     _spry  = spry;
     _table = table;
     _insertColumnBuilder = new StringBuilder();
     _insertValueBuilder  = new StringBuilder();
     _parameters          = table.Parameters;
 }
Example #2
0
        public static InsertValue <TDto> Insert(string tableName, string dbSchema)
        {
            var spry = new SpryInsert <TDto>
            {
                _table    = tableName,
                _dbSchema = dbSchema,
            };

            spry._spryTable = new SpryInsertTable <TDto>(tableName, dbSchema, spry);
            return(spry._value = new InsertValue <TDto>(spry, spry._spryTable));
        }
Example #3
0
 public SpryInsertTable(string tableName, string schema, SpryInsert <TDto> spry)
     : base(tableName, schema)
 {
     _spry = spry;
 }