nhibernate-collections

Fluent-Nibernate with wpf: Convention to use uNhAddIns…ObservableListType<T> as default?

放肆的年华 提交于 2020-02-03 10:02:05
问题 I am trying to use Fluent-Nibernate with wpf that require Observable collections (implement the INotifyCollectionChanged interface). At uNHAddins: Unofficial addins for NHibernate i found the uNhAddIns.WPF.Collections.Types.ObservableListType<T> that implements INotifyCollectionChanged . It can be configured in Fluent-Nibernate like this namespace FluentNHibernateTutorial.Mappings { public class StoreMap : ClassMap<Store> { public StoreMap() { Id(x => x.Id); Map(x => x.Name); HasManyToMany(x

Fluent-Nibernate with wpf: Convention to use uNhAddIns…ObservableListType<T> as default?

不羁的心 提交于 2020-02-03 10:00:08
问题 I am trying to use Fluent-Nibernate with wpf that require Observable collections (implement the INotifyCollectionChanged interface). At uNHAddins: Unofficial addins for NHibernate i found the uNhAddIns.WPF.Collections.Types.ObservableListType<T> that implements INotifyCollectionChanged . It can be configured in Fluent-Nibernate like this namespace FluentNHibernateTutorial.Mappings { public class StoreMap : ClassMap<Store> { public StoreMap() { Id(x => x.Id); Map(x => x.Name); HasManyToMany(x

Fetch child without primary key NHibernate

会有一股神秘感。 提交于 2019-12-12 18:33:45
问题 I am trying to get a collection of objects into a parent object through mapping. I have a parent object "ScoreCard" whose primary key is a guid (Id) and a child "Score" object whose primary key is a guid (Id). I want to select the child objects for the parent based on two fields that both objects have but I can't get it to work, here's the mapping <bag name="ScoreCard"> <key> <column name="HoleId"/> <column name="PlayerId"/> </key> <one-to-many class="Score" not-found="ignore"/> </bag> I didn