Esempio n. 1
0
        public override void CustomizeTypesInfo(ITypesInfo typesInfo)
        {
            base.CustomizeTypesInfo(typesInfo);

            CalculatedPersistentAliasHelper.CustomizeTypesInfo(typesInfo);

            foreach (var type in XafTypesInfo.Instance.PersistentTypes)
            {
                ModelNodesGeneratorSettings.SetIdPrefix(type.Type, type.FullName);
            }

            foreach (var ci in typesInfo.PersistentTypes)
            {
                if (!ci.IsPersistent)
                {
                    continue;
                }

                /*var tableName = TranslatePersistentName( ci.AssemblyInfo.FullName, ci.Name );
                 * ci.AddAttribute( new PersistentAttribute( tableName ) );*/

                var oidMember = ci.FindMember("Oid");
                if (oidMember != null)
                {
                    var browsableAttribute = oidMember.FindAttribute <BrowsableAttribute>( );
                    if (browsableAttribute == null)
                    {
                        oidMember.AddAttribute(new BrowsableAttribute(false));
                    }

                    typesInfo.RefreshInfo(ci);
                }
            }
        }
Esempio n. 2
0
 public override void CustomizeTypesInfo(ITypesInfo typesInfo)
 {
     base.CustomizeTypesInfo(typesInfo);
     foreach (ITypeInfo info in typesInfo.PersistentTypes)
     {
         if (info.Type.Namespace == typeof(BusinessObjects.User).Namespace)
         {
             ModelNodesGeneratorSettings.SetIdPrefix(info.Type, "Spock_" + info.Type.Name);
         }
     }
     CalculatedPersistentAliasHelper.CustomizeTypesInfo(typesInfo);
 }
Esempio n. 3
0
 static FeatureCenterModule()
 {
     Hints.RegisterViewSpecificHints();
     DevExpress.ExpressApp.SystemModule.ObjectMethodActionsViewController.Enabled = false;
     ModelNodesGeneratorSettings.SetIdPrefix(typeof(FeatureCenter.Module.ConcurrentModifications.Person), "ConcurrentModifications.Person");
 }
Esempio n. 4
0
 static RegistratorModule()
 {
     ModelNodesGeneratorSettings.SetIdPrefix(typeof(DoctorEvent), "Registrator_Event");
 }