OneToOneMapping IOneToOneMappingProvider.GetOneToOneMapping() { var mapping = new OneToOneMapping(attributes.Clone()); mapping.ContainingEntityType = entity; mapping.Set(x => x.Class, Layer.Defaults, new TypeReference(typeof(TOther))); mapping.Set(x => x.Name, Layer.Defaults, member.Name); return(mapping); }
public new void Class(Type type) { mapping.Set(x => x.Class, Layer.Conventions, new TypeReference(type)); }