| | |
| | | if (sugarColumn == null) |
| | | return "请é
ç½®SugarColumn屿§"; |
| | | //忽ç¥ä¸ä¸»é®çåæ®µä¸åéªè¯ |
| | | if (property.Name.ToUpper() == keyName.ToUpper() || (ignoreFields != null && ignoreFields.Contains(property.Name)) || sugarColumn.IsOnlyIgnoreInsert || sugarColumn.IsOnlyIgnoreUpdate || sugarColumn.IsIgnore) |
| | | if (property.Name == keyName.FirstLetterToLower() || (ignoreFields != null && ignoreFields.Contains(property.Name)) || sugarColumn.IsOnlyIgnoreInsert || sugarColumn.IsOnlyIgnoreUpdate || sugarColumn.IsIgnore) |
| | | continue; |
| | | |
| | | //ä¸å¨ç¼è¾ä¸çåï¼æ¯å¦ä¹è¦å¿
å¡« |
| | | if (!dic.ContainsKey(property.Name.ToUpper())) |
| | | if (!dic.ContainsKey(property.Name.FirstLetterToLower())) |
| | | { |
| | | if (!sugarColumn.IsNullable) |
| | | { |
| | |
| | | } |
| | | continue; |
| | | } |
| | | if(dic[property.Name.ToUpper()] != null) |
| | | if(dic[property.Name.FirstLetterToLower()] != null) |
| | | { |
| | | string str = dic[property.Name.ToUpper()].ToString(); |
| | | string str = dic[property.Name.FirstLetterToLower()].ToString(); |
| | | //å°ææç©ºå¼è®¾ç½®ä¸ºnull |
| | | if (str == string.Empty) |
| | | dic[property.Name.ToUpper()] = null; |
| | | dic[property.Name.FirstLetterToLower()] = null; |
| | | } |
| | | |
| | | } |