Ejemplo n.º 1
0
        public IDBTableAdapterCommand <T> CreateInsertCommand(DBTableAdapterContext <T> context)
        {
            var cmd = new NoQueryCommand <T>(
                _SqlResolver.InsertTemplate(context),
                context.InsertColumnsInfo.Select(i => new CommandParameter <T> {
                Column = i
            })
                );

            return(cmd);
        }
Ejemplo n.º 2
0
        public IDBTableAdapterCommand <T> CreateInsertCommand(DBTableAdapterContext <T> context)
        {
            var cmd = new ReturningCommand <T>(
                _SqlResolver.InsertTemplate(context),
                context.AllColumnsInfo.Select(i => new CommandParameter <T> {
                Column = i, Direction = ParameterDirection.InputOutput
            })
                );

            return(cmd);
        }