private static bool IsTransient(BaseEntity obj)
 {
     return(obj != null && Equals(obj.Id, default(int)));
 }