public string GetDotNetPropertyName() { if (string.IsNullOrWhiteSpace(ParamName)) { return(null); } var cName = ParamName.StartsWith("@") ? ParamName.Substring(1, ParamName.Length - 1) : ParamName; cName = NfString.SafeDotNetIdentifier(cName); cName = NfString.CapWords(cName, null); if (GetSqlDataType() == SqlDbType.Bit && !cName.StartsWith("Is")) { cName = string.Format("Is{0}", cName); } if (cName.EndsWith("ID")) { cName = string.Format("{0}Id", cName.Substring(0, cName.Length - 2)); } return(cName); }