Пример #1
0
        public DEMemberCollectionRelativeExecutorBase(DEOperationType opType, DEBase container, DESchemaObjectCollection members, DEStandardObjectSchemaType relationType)
            : base(opType, container)
        {
            container.NullCheck("container");
            container.ClearRelativeData();

            members.NullCheck("members");
            members.ForEach(p => p.ClearRelativeData());

            this._Container = container;
            this._Members   = members;
            _RelationType   = relationType;

            this.SaveMemberData = true;
        }
Пример #2
0
        //protected abstract DESimpleRelationBase CreateRelation(DESchemaObjectBase container, DESchemaObjectBase member);

        protected abstract DESimpleRelationBase CreateRelation(DESchemaObjectBase container, DESchemaObjectBase member, DEStandardObjectSchemaType relationType);
 protected override DESimpleRelationBase CreateRelation(DESchemaObjectBase container, DESchemaObjectBase member, DEStandardObjectSchemaType relationType)
 {
     return(new DEMemberRelation(container, member, relationType));
 }
Пример #4
0
 /// <summary>
 /// 使用指定的容器对象和成员对象 初始化<see cref="DEMemberRelation"/>的新实例
 /// </summary>
 /// <param name="container">容器对象</param>
 /// <param name="member">成员对象</param>
 public DEMemberRelation(DESchemaObjectBase container, DESchemaObjectBase member, DEStandardObjectSchemaType relationType) :
     base(container, member, relationType.ToString())
 {
 }
 public DEMemberCollectionRelativeExecutor(DEOperationType opType, DEBase container, DESchemaObjectCollection members, DEStandardObjectSchemaType relationType)
     : base(opType, container, members, relationType)
 {
 }