Example #1
0
 public DataAccess()
 {
     this.DbMappings = new List <DatabaseMapping>();
     foreach (var map in MappingsProvider.GetMappings())
     {
         AddDbMapping(map);
     }
 }
Example #2
0
 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);
 }