Ejemplo n.º 1
0
        public virtual QueryCommand BatchInsert(DataContext context, DataTableEntityMapping mapping, IList datas, bool refresh)
        {
            CreateSqlState state        = new CreateSqlState(context, false);
            CommandData    commandData  = _factory.CreateBatchInsertCommand(mapping, datas, refresh, state);
            DbCommand      command      = commandData.CreateCommand(this, state);
            QueryCommand   queryCommand = new QueryCommand()
            {
                Command = command
            };

            return(queryCommand);
        }