Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public new void Class(Type type)
 {
     mapping.Set(x => x.Class, Layer.Conventions, new TypeReference(type));
 }