Xaf tip # 4
This is my 4th post on my Xaf tips series Runtime Member creation on TypesInfo and XPDictionary When you are developing modules and need to generate runtime member you should be carefull which method you choose because the following is valid always Assert.IsNull(XafTypesInfo.Instance.FindTypeInfo( typeof (Country)).CreateMember( "TestMember" , typeof ( string ))); and this one not Assert.IsNull(XafTypesInfo.XpoTypeInfoSource.XPDictionary.GetClassInfo( typeof (Country)).CreateMember( "TestMember" , typeof ( string ))); So to test my sayings create a new Xaf Application add a controller and call public override void CustomizeTypesInfo(ITypesInfo typesInfo){ base .CustomizeTypesInfo(typesInfo);
Διαβάστε περισσότερα »