private TypeDefine(string typeName, string metadataCode, TypeMetadata metadata, Type domainInterfaceType, Type objectType, string qualifiedName)
 {
     this.TypeName            = typeName.FirstToUpper();
     this.MetadataCode        = metadataCode;
     this.Metadata            = metadata;
     this.DomainInterfaceType = domainInterfaceType;
     this.ObjectType          = objectType;
     this.Constructor         = this.ObjectType.ResolveConstructor(typeof(TypeDefine), typeof(bool));
     this.QualifiedName       = qualifiedName;
     InitMetadataType();
     AddDefineIndex(typeName, this);                            //加入索引
     this.RemoteType = GetRemoteType();
     RemoteType.AddDefineIndex(this.RemoteType.FullName, this); //加入索引
 }
示例#2
0
 private TypeDefine(string typeName, string metadataCode, TypeMetadata metadata, Type domainInterfaceType, Type objectType, string qualifiedName)
 {
     this.TypeName            = typeName.FirstToUpper();
     this.MetadataCode        = metadataCode;
     this.MetadataSchemaCode  = DTObject.Create(metadataCode).GetSchemaCode(false, false);
     this.Metadata            = metadata;
     this.DomainInterfaceType = domainInterfaceType;
     this.ObjectType          = objectType;
     this.Constructor         = this.ObjectType.ResolveConstructor(typeof(TypeDefine), typeof(bool));
     this.QualifiedName       = qualifiedName;
     InitMetadataType();
     this.RemoteType = GetRemoteType();
     if (!IsIgnore(typeName, this))
     {
         AddDefineIndex(typeName, this);                            //加入索引
         RemoteType.AddDefineIndex(this.RemoteType.FullName, this); //加入索引
     }
 }