Example #1
0
 public override void Apply(KeyAttribute annotation, ModelOptions modelOptions, ClassTypeOptions typeOptions, ClassMemberOptions memberOptions)
 {
     memberOptions.IsKey = true;
 }
Example #2
0
 public abstract void Apply(TAttribute annotation, ModelOptions modelOptions, ClassTypeOptions typeOptions, ClassMemberOptions memberOptions);
Example #3
0
 public void Apply(Attribute annotation, ModelOptions modelOptions, ClassTypeOptions typeOptions, ClassMemberOptions memberOptions)
 {
     Apply((TAttribute)annotation, modelOptions, typeOptions, memberOptions);
 }
 public override void Apply(PatchAttribute annotation, ModelOptions modelOptions, ClassTypeOptions typeOptions, ClassMemberOptions memberOptions)
 {
     typeOptions.UsePatchProxy = true;
 }
 public override void Apply(NotMappedAttribute annotation, ModelOptions modelOptions, ClassTypeOptions typeOptions, ClassMemberOptions memberOptions)
 {
     memberOptions.Ignored = true;
 }
 public ClassMemberOptionsBuilder(ClassTypeOptions typeOptions, ClassMemberOptions memberOptions) 
     : base(typeOptions)
 {
     MemberOptions = memberOptions;
 }
Example #7
0
 public override void Apply(CompositionAttribute annotation, ModelOptions modelOptions, ClassTypeOptions typeOptions, ClassMemberOptions memberOptions)
 {
     memberOptions.Owned = true;
 }
Example #8
0
 public override void Apply(AggregationAttribute annotation, ModelOptions modelOptions, ClassTypeOptions typeOptions, ClassMemberOptions memberOptions)
 {
     memberOptions.Owned = false;
 }