>/// <summary> >/// parish >/// </summary> >public int parish >{ > get { return (int)mmType.GetNullableDbValue(this.Row["parish"]); } > set { this.Row["parish"] = value; } >} >If the underlying data column is nullable, your property should be nullable like this:
/// <summary> /// parish /// </summary> public int? parish { get { return (int?)mmType.GetNullableDbValue(this.Row["parish"]); } set { this.Row["parish"] = value; } }If the underlying data column is NOT nullable, it should look like this:
/// <summary> /// parish /// </summary> public int parish { get { return (int)mmType.GetNonNullableDbValue(this.Row["parish"]); } set { this.Row["parish"] = value; } }Best Regards,