internal bool HasPropertyOrColumnMapping(string name) { if (ColumnMap2Property.ContainsKey(name)) { return(true); } else { return(PropertyNames.Any(propName => propName == name)); } }
internal int GetIndexByPropertyNameOrColumnMapping(string propNameOrColMapName) { if (ColumnMap2Property.ContainsKey(propNameOrColMapName)) { return(PropertyIndex[ColumnMap2Property[propNameOrColMapName]]); } else { return(PropertyIndex[propNameOrColMapName]); } }
internal PropertyInfo GetInfoByPropertyNameOrColumnMapping(string propNameOrColMapName) { PropertyInfo result = null; if (ColumnMap2Property.ContainsKey(propNameOrColMapName)) { result = Properties[PropertyIndex[ColumnMap2Property[propNameOrColMapName]]]; } else { result = Properties[PropertyIndex[propNameOrColMapName]]; } return(result); }