public static DbImage Create(string fileName) { DbImage img = Create(); img.LoadFromFile(fileName); return(img); }
protected Entity() { foreach (PropertyInfo pi in GetType().GetProperties().Where(p => p.PropertyType == typeof(DbImage))) { pi.SetValue(this, DbImage.Create(), null); } }