Example #1
0
        private void Create(IValueManager manager)
        {
            TableType = TableVar.DataType;
            RowType   = TableType.RowType;

            Schema.RowType keyRowType;
            Schema.RowType dataRowType;

            // Create the map index required to store data as described by the given table variable
            keyRowType  = new Schema.RowType(Key.Columns);
            dataRowType = new Schema.RowType();
            foreach (Schema.Column column in TableVar.DataType.Columns)
            {
                dataRowType.Columns.Add(new Schema.Column(column.Name, column.DataType));
            }

            Index =
                new NativeRowMap
                (
                    Key,
                    EqualitySorts,
                    keyRowType,
                    dataRowType
                );
        }
Example #2
0
 public NativeRowMapEqualityComparer(NativeRowMap nativeRowMap)
 {
     _nativeRowMap = nativeRowMap;
 }