Esempio n. 1
0
        protected override void AddItem(MemoryMetadataPool pool)
        {
            var orderTable = new MemoryTableMetadata()
            {
                TableName = "Table_OrderItem"
            };

            orderTable.Columns = new List <MemoryColumnMetadata>();
            orderTable.Columns.Add(new MemoryColumnMetadata()
            {
                ColumnName = "ItemId"
            });
            orderTable.Columns.Add(new MemoryColumnMetadata()
            {
                ColumnName = "ProductId"
            });
            orderTable.Columns.Add(new MemoryColumnMetadata()
            {
                ColumnName = "Number"
            });

            pool.AddPoolItem(new MemoryPoolItem()
            {
                Item = orderTable,
                Key  = typeof(Item).ToString()
            });
        }
Esempio n. 2
0
        protected override void AddItem(MemoryMetadataPool pool)
        {
            var orderTable = new MemoryTableMetadata()
            {
                TableName = "Table_Order"
            };

            orderTable.Columns = new List <MemoryColumnMetadata>();
            orderTable.Columns.Add(new MemoryColumnMetadata()
            {
                ColumnName = "OrderId"
            });
            orderTable.Columns.Add(new MemoryColumnMetadata()
            {
                ColumnName = "CustomerId"
            });
            orderTable.Columns.Add(new MemoryColumnMetadata()
            {
                ColumnName = "Address"
            });

            pool.AddPoolItem(new MemoryPoolItem()
            {
                Item = orderTable,
                Key  = typeof(Order).ToString()
            });
        }