Ejemplo n.º 1
0
        public int Insert(Type itemType, object item, string tableName)
        {
            InsertCommandBuilder inserter = InsertCommandBuilder.Create(itemType);
            DbCommand            command  = inserter.Build(item, tableName, _database, Connection, Transaction);

            command.ExecuteNonQuery();
            return((int)inserter.GetKey(command));
        }