This does not directly answer the question .. but it answers the question in the comment on the accepted answer here.
SQL View . , NHibernate , Id . .. Ledger, CustomerAccountId Id.., .
, CompositeId, , , . CustomerAccountId WeekEnding:
CompositeId()
.KeyProperty(x => x.CustomerAccountId)
.KeyProperty(x => x.WeekEnding);
, NHibernate .