예제 #1
0
        public virtual QueryCommand Insert(DataContext context, DataTableEntityMapping mapping, object data, bool refresh, bool updateIdentity)
        {
            CreateSqlState state        = new CreateSqlState(context, false);
            CommandData    commandData  = _factory.CreateBaseInsertCommand(mapping, data, refresh, updateIdentity, state);
            DbCommand      command      = commandData.CreateCommand(this, state);
            QueryCommand   queryCommand = new QueryCommand()
            {
                Command     = command,
                IdentitySql = commandData.IdentitySql
            };

            return(queryCommand);
        }