public static ObjectType Create(bool fill = true) { var instance = Activator.CreateInstance <ObjectType>(); if (fill) { ObjectFiller <ObjectType> .Fill(instance); } return(instance); }
static ObjectFactory() { ObjectFiller <ObjectType> .IgnorePropertiesWhen(propName => propName == "Id"); }