






















19.2.4 之后
public override void CustomizeTypesInfo(ITypesInfo typesInfo) { base.CustomizeTypesInfo(typesInfo); XPDictionary dictionary = XpoTypesInfoHelper.GetXpoTypeInfoSource().XPDictionary; //You can use this code to load missing classes into XPDictionary. However, it is better to do that in the code of your module as follows: this.AdditionalExportedTypes.Add(typeof(DevExpress.ExpressApp.Updating.ModuleInfo)); dictionary.GetClassInfo(typeof(DevExpress.ExpressApp.Xpo.Updating.ModuleInfo)); dictionary.GetClassInfo(typeof(DevExpress.Xpo.XPObjectType)); dictionary.GetClassInfo(typeof(DevExpress.Xpo.XPWeakReference)); foreach (XPClassInfo ci in dictionary.Classes) { if (ci.IsPersistent && (ci.AssemblyName.StartsWith("DevExpress.") || ci is DevExpress.Xpo.Metadata.Helpers.IntermediateClassInfo)) { ci.RemoveAttribute(typeof(PersistentAttribute)); ci.AddAttribute(new PersistentAttribute(string.Format("System_{0}", ci.TableName))); typesInfo.RefreshInfo(ci.ClassType); } } }
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。