.NET 學習

.NET 學習生活感想... 万事成蹉跎..... 贵在坚持 及时整理自己做过和学过的东西

博客园 首页 新随笔 联系 订阅 管理

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);  
        }
    }
}

 

如何通过前缀或自定义架构将数据库表与内置系统表分开 |DevExpress 支持

posted on 2025-03-29 10:41  Tonyyang  阅读(12)  评论(0)    收藏  举报
欢迎转载,转载请注明出处:http://www.cnblogs.com/Tonyyang/