private void StatisticCustomization(IClassMapper<Statistic> ca) { ca.Table(tablePrefix + "Statistics"); ca.ComposedId(x => { x.Property(y => y.TimeSlot); x.Property(y => y.PageID); }); //ca.Id(x => new { x.TimeSlot, x.PageID }, cm => { cm.Generator(Generators.Assigned); }); ca.Lazy(false); ca.Property(x => x.TimeSlot, cm => { cm.NotNullable(true); }); ca.Property(x => x.Views, cm => { cm.NotNullable(true); }); }
private void StatisticCustomization(IClassMapper <Statistic> ca) { ca.Table(tablePrefix + "Statistics"); ca.ComposedId(x => { x.Property(y => y.TimeSlot); x.Property(y => y.PageID); }); //ca.Id(x => new { x.TimeSlot, x.PageID }, cm => { cm.Generator(Generators.Assigned); }); ca.Lazy(false); ca.Property(x => x.TimeSlot, cm => { cm.NotNullable(true); }); ca.Property(x => x.Views, cm => { cm.NotNullable(true); }); }