public void InitDbValue() { var rType = GetType(); var ps = rType.GetProperties(); foreach (var info in ps) { ExtendedAttribute extended = ExtendedAttribute.GetAttribute(info); if (extended != null) { continue; } ExcludeFieldAttribute exclude = ExcludeFieldAttribute.GetAttribute(info); if (exclude != null) { continue; } RefFieldAttribute refField = RefFieldAttribute.GetAttribute(info); if (refField != null) { continue; } _dbvalue.Add(info.Name, info.GetValue(this, null)); } }