Esempio n. 1
0
 /// <summary>
 /// This function gets the type of the entity inside a entry. Note that entr.GetType() returns ObjectStateEntry as type!
 /// Also entry.Entity.GetType returns the type of proxy object
 /// </summary>
 /// <param name="en"></param>
 /// <returns></returns>
 private Type GetEntityType(System.Data.Entity.Core.Objects.ObjectStateEntry en)
 {
     return(System.Data.Entity.Core.Objects.ObjectContext.GetObjectType(en.Entity.GetType()));
 }
Esempio n. 2
0
 private bool IsEncrypted(System.Data.Entity.Core.Objects.ObjectStateEntry entry)
 {
     return(GetEntityType(entry).GetCustomAttributes(typeof(Encrypted), true).Any());
 }