| | |
| | | continue; |
| | | |
| | | //涓嶅湪缂栬緫涓殑鍒楋紝鏄惁涔熻蹇呭~ |
| | | if (!dic.ContainsKey(property.Name.FirstLetterToLower()) /*&& !dic.ContainsKey(property.Name.FirstLetterToUpper())*/) |
| | | { |
| | | if (!sugarColumn.IsNullable) |
| | | { |
| | | if (sugarColumn.DefaultValue == null) |
| | | return sugarColumn.ColumnDescription + "涓哄繀椤绘彁浜ら」"; |
| | | continue; |
| | | } |
| | | continue; |
| | | } |
| | | if(dic[property.Name.FirstLetterToLower()] != null) |
| | | { |
| | | string str = dic[property.Name.FirstLetterToLower()].ToString(); |
| | | //灏嗘墍鏈夌┖鍊艰缃负null |
| | | if (str == string.Empty) |
| | | dic[property.Name.FirstLetterToLower()] = null; |
| | | } |
| | | //if (!dic.ContainsKey(property.Name.FirstLetterToLower()) /*&& !dic.ContainsKey(property.Name.FirstLetterToUpper())*/) |
| | | //{ |
| | | // if (!sugarColumn.IsNullable) |
| | | // { |
| | | // if (sugarColumn.DefaultValue == null) |
| | | // return sugarColumn.ColumnDescription + "涓哄繀椤绘彁浜ら」"; |
| | | // continue; |
| | | // } |
| | | // continue; |
| | | //} |
| | | //if(dic.ContainsKey(property.Name.FirstLetterToUpper())) |
| | | //if (dic[property.Name.FirstLetterToLower()] != null) |
| | | //{ |
| | | // string str = dic[property.Name.FirstLetterToLower()].ToString(); |
| | | // //灏嗘墍鏈夌┖鍊艰缃负null |
| | | // if (str == string.Empty) |
| | | // dic[property.Name.FirstLetterToLower()] = null; |
| | | //} |
| | | |
| | | } |
| | | return string.Empty; |