Beispiel #1
0
        public static ObjectType Create(bool fill = true)
        {
            var instance = Activator.CreateInstance <ObjectType>();

            if (fill)
            {
                ObjectFiller <ObjectType> .Fill(instance);
            }

            return(instance);
        }
Beispiel #2
0
 static ObjectFactory()
 {
     ObjectFiller <ObjectType> .IgnorePropertiesWhen(propName => propName == "Id");
 }