示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DynamicTable"/> class.
 /// </summary>
 /// <param name="tableName">Name of the table.</param>
 /// <param name="dataStrategy">The database which owns the table.</param>
 /// <param name="schema">The schema to which the table belongs.</param>
 internal DynamicTable(string tableName, DataStrategy dataStrategy, DynamicSchema schema)
 {
     _delegates = new Dictionary<string, Func<object[], object>>();
     _delegatesAsCollection = _delegates;
     _tableName = tableName;
     _schema = schema;
     _dataStrategy = dataStrategy;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DynamicTable"/> class.
 /// </summary>
 /// <param name="tableName">Name of the table.</param>
 /// <param name="dataStrategy">The database which owns the table.</param>
 /// <param name="schema">The schema to which the table belongs.</param>
 internal DynamicTable(string tableName, DataStrategy dataStrategy, DynamicSchema schema)
 {
     _tableName = tableName;
     _schema = schema;
     _dataStrategy = dataStrategy;
 }
示例#3
0
 internal DynamicSchema SetMemberAsSchema(ObjectReference reference, DynamicSchema schema)
 {
     if (reference == null) throw new ArgumentNullException("reference");
     _members.TryUpdate(reference.GetName(), schema, reference);
     return (DynamicSchema) _members[reference.GetName()];
 }