Exemple #1
0
        public string Serialize()
        {
            List <string> items = new List <string>()
            {
                $@"""{Dialect}""", $@"""{XCS}""", CatMap.Serialize(), QueueDrainOrders.Serialize(), "{}"
            };

            return(SerializationHelper.Serialize("[]", items, x => x));
        }
 public void Override(AutoMap <Animal> mapping)
 {
     mapping.Map(x => x.Name);
     mapping.IgnoreProperty(x => x.Unwanted);
     mapping.JoinedSubClass("CatId", CatMap.AsJoinedSubClass());
     mapping.JoinedSubClass("DogId", DogMap.AsJoinedSubClass());
     //mapping.DiscriminateSubClassesOnColumn("Type")
     //    .SubClass<Cat>("CatId", CatMap.AsSubClass())
     //    .SubClass<Dog>("CatId", DogMap.AsSubClass());
 }