Updating Fluent to incorporate GenericEnumMapper serialization attribute. Adding aditional parameter to public references API to make it more generic.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-11-12 14:54:11 -08:00
parent a9d30c36dd
commit 8c8f2b91aa
3 changed files with 1 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ namespace Orchard.ContentManagement.Records {
class Alteration<TItemRecord, TPartRecord> : IAlteration<TItemRecord> {
public void Override(AutoMapping<TItemRecord> mapping) {
mapping.References<TPartRecord>(typeof(TItemRecord), typeof(TPartRecord).Name)
mapping.References<TPartRecord>(typeof(TItemRecord), typeof(TPartRecord).Name, typeof(TPartRecord).Name)
.Access.NoOp()
.Column("Id")
.ForeignKey("none") // prevent foreign key constraint from ContentItem(Version)Record to TPartRecord