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

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

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