Esempio n. 1
0
 /// <summary>
 /// Method to select an Section entity.
 /// </summary>
 /// <param name="op">Section entities select options to perform query.</param>
 /// <returns>An Section entity or null if not found.</returns>
 public SectionEntity SingleOrDefault(SectionOptionsSelect op)
 {
     using (Db.Context)
     {
         return(SectionManager.Select(op, false));
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Method to select an Section entity.
 /// </summary>
 /// <param name="op">Section entities select options to perform query.</param>
 /// <returns>An Section entity or null if not found.</returns>
 public SectionEntity SingleOrNull(SectionOptionsSelect op)
 {
     using (Db.Context)
     {
         return(SectionManager.Select(op, true));
     }
 }