Beispiel #1
0
        public static DbImage Create(string fileName)
        {
            DbImage img = Create();

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