Example #1
0
 /// <summary>
 /// Builds a null check HasValue Statements for the Property Templates.
 /// </summary>
 /// <param name="association"></param>
 /// <param name="usePropertyName"></param>
 /// <param name="useNot"></param>
 /// <param name="useAndAlso"></param>
 /// <param name="trimEnd"></param>
 /// <returns></returns>
 public static string BuildNullCheckStatement(this IAssociation association, bool usePropertyName, bool useNot, bool useAndAlso, bool trimEnd)
 {
     return(association.BuildNullCheckStatement(false, true, false, false, null));
 }
Example #2
0
 /// <summary>
 /// Builds a null check HasValue Statements for the Property Templates.
 /// </summary>
 /// <param name="association"></param>
 /// <returns></returns>
 public static string BuildNullCheckStatement(this IAssociation association)
 {
     return(association.BuildNullCheckStatement(false, true, false, false));
 }