コード例 #1
0
        public void SyncFromMeta(AssociationType associationType)
        {
            this.id = associationType.Id;

            this.objectType = null;
            if (!associationType.IsObjectTypeDefault)
            {
                this.objectType = new IdrefXml(associationType.ObjectType.Id);
            }

            this.singularName = null;
            if (!associationType.IsAssignedSingularNameDefault)
            {
                this.singularName = associationType.AssignedSingularName;
            }

            this.pluralName = null;
            if (!associationType.IsAssignedPluralNameDefault)
            {
                this.pluralName = associationType.AssignedPluralName;
            }

            this.isMany = null;
            if (!associationType.IsIsManyDefault)
            {
                this.isMany = XmlConvert.ToString(associationType.IsMany);
            }
        }
コード例 #2
0
        public void SyncFromMeta(RoleType roleType)
        {
            this.id = roleType.Id;

            this.objectType = null;
            if (!roleType.IsObjectTypeDefault)
            {
                this.objectType = new IdrefXml(roleType.ObjectType.Id);
            }

            this.singularName = null;
            if (!roleType.IsAssignedSingularNameDefault)
            {
                this.singularName = roleType.AssignedSingularName;
            }

            this.pluralName = null;
            if (!roleType.IsAssignedPluralNameDefault)
            {
                this.pluralName = roleType.AssignedPluralName;
            }

            this.isMany = null;
            if (!roleType.IsIsManyDefault)
            {
                this.isMany = XmlConvert.ToString(roleType.IsMany);
            }

            this.size = null;
            if (!roleType.IsSizeDefault)
            {
                this.size = XmlConvert.ToString(roleType.Size);
            }

            this.precision = null;
            if (!roleType.IsPrecisionDefault)
            {
                this.precision = XmlConvert.ToString(roleType.Precision);
            }

            this.scale = null;
            if (!roleType.IsScaleDefault)
            {
                this.scale = XmlConvert.ToString(roleType.Scale);
            }
        }
コード例 #3
0
        internal void SyncFromMeta(Inheritance inheritance)
        {
            this.id = inheritance.Id;

            this.supertype = null;
            this.subtype   = null;

            this.supertype = null;
            if (!inheritance.IsSupertypeDefault)
            {
                this.supertype = new IdrefXml(inheritance.Supertype.Id);
            }

            this.subtype = null;
            if (!inheritance.IsSubtypeDefault)
            {
                this.subtype = new IdrefXml(inheritance.Subtype.Id);
            }
        }
コード例 #4
0
        internal void SyncFromMeta(ObjectType objectType)
        {
            this.id           = objectType.Id;
            this.singularName = null;
            this.pluralName   = null;
            this.isAbstract   = null;
            this.nameSpace    = null;
            this.isInterface  = null;

            this.singularName = null;
            if (!objectType.IsAssignedSingularNameDefault)
            {
                this.singularName = objectType.SingularName;
            }

            this.pluralName = null;
            if (!objectType.IsAssignedPluralNameDefault)
            {
                this.pluralName = objectType.PluralName;
            }

            this.isAbstract = null;
            if (!objectType.IsIsAbstractDefault)
            {
                this.isAbstract = null;
                if (objectType.ExistIsAbstract)
                {
                    this.isAbstract = XmlConvert.ToString(objectType.IsAbstract);
                }
            }

            this.isInterface = null;
            if (!objectType.IsIsInterfaceDefault)
            {
                this.isInterface = null;
                if (objectType.ExistIsInterface)
                {
                    this.isInterface = XmlConvert.ToString(objectType.IsInterface);
                }
            }
        }