public DataAccess() { this.DbMappings = new List <DatabaseMapping>(); foreach (var map in MappingsProvider.GetMappings()) { AddDbMapping(map); } }
private string GetQuery(string QueryText, DatabaseMapping Mapping) { foreach (var m in MappingsProvider.GetGlobalNames()) { //Using regex replace so that the case doesn't need to match QueryText = Regex.Replace(QueryText, m, Mapping.GetLocalName(m), RegexOptions.IgnoreCase); } return(QueryText); }