private static XmlReader GetMappingResource(string resourceBaseName) { string rez = GetResourceAsString( String.Format("MySql.Data.Entity.Properties.{0}", resourceBaseName)); StringReader sr = new StringReader(rez); return XmlReader.Create(sr); }