mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-20 10:47:56 +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> {
|
class Alteration<TItemRecord, TPartRecord> : IAlteration<TItemRecord> {
|
||||||
public void Override(AutoMapping<TItemRecord> mapping) {
|
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()
|
.Access.NoOp()
|
||||||
.Column("Id")
|
.Column("Id")
|
||||||
.ForeignKey("none") // prevent foreign key constraint from ContentItem(Version)Record to TPartRecord
|
.ForeignKey("none") // prevent foreign key constraint from ContentItem(Version)Record to TPartRecord
|
||||||
|
Reference in New Issue
Block a user