public string GetPropertyMapping(GDA.Mapping.TypeInfo typeInfo, string propertyName) { ClassMapping mapping = null; if (_mappings.TryGetValue(typeInfo.Fullname, out mapping)) { var property = mapping.Properties.Find(f => f.Name == propertyName); return(property != null ? property.Column : null); } return(null); }
public TableName GetTableName(GDA.Mapping.TypeInfo typeInfo) { ClassMapping mapping = null; if (_mappings.TryGetValue(typeInfo.Fullname, out mapping)) { return new TableName { Name = mapping.Table, Schema = mapping.Schema } } ; return(null); }