mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 18:27:55 +08:00
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:
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
|
Reference in New Issue
Block a user