示例#1
0
 public void AddPhysicTable(IPhysicTable physicTable)
 {
     if (!_physicTables.Contains(physicTable))
     {
         _physicTables.Add(physicTable);
     }
 }
示例#2
0
 public void AddPhysicTable(IPhysicTable physicTable)
 {
     if (_physicTables.All(o => o.Tail != physicTable.Tail))
     {
         _physicTables.Add(physicTable);
     }
 }
        /// <summary>
        /// 添加物理表
        /// </summary>
        /// <param name="shardingEntityType"></param>
        /// <param name="physicTable"></param>
        public void AddPhysicTable(Type shardingEntityType, IPhysicTable physicTable)
        {
            var virtualTable = GetVirtualTable(shardingEntityType);

            virtualTable.AddPhysicTable(physicTable);
        }
 /// <summary>
 /// 添加物理表
 /// </summary>
 /// <param name="virtualTable"></param>
 /// <param name="physicTable"></param>
 public void AddPhysicTable(IVirtualTable virtualTable, IPhysicTable physicTable)
 {
     AddPhysicTable(virtualTable.EntityType, physicTable);
 }