と呼ばれる基本クラスBaseEventといくつかの子孫クラスがあります。
public class BaseEvent {
// the some properties
// ...
}
[MapInheritance(MapInheritanceType.ParentTable)]
public class Film : BaseEvent {
// the some properties
// ...
}
[MapInheritance(MapInheritanceType.ParentTable)]
public class Concert : BaseEvent {
// the some properties
// ...
}
BaseEvent実行時にインスタンスを作成するコードがあります:
BaseEvent event = new BaseEvent();
// assign values for a properties
// ...
baseEvent.XPObjectType = Database.XPObjectTypes.SingleOrDefault(
t => t.TypeName == "MyApp.Module.BO.Events.BaseEvent");
これで、このイベントがBaseEventリスト ビューで表示されます。
私は次のことをしたい: ユーザーがEditボタンをクリックすると、すべての子孫の種類を含むリスト ビューのルックアップ フィールドに表示されます。そして、ユーザーがレコードの変更ObjectTypeを選択した値に保存すると。
これどうやってするの?
ありがとう。
PS。これはasp.netアプリです。
