Esempio n. 1
0
        public void GenerateResx(string baseName)
        {
            var generator = new ResxGenerator()
            {
                ConnectionStringName = ConnectionStringName
            };
            string filename = string.Format("{0}.resx", baseName);

            using (Stream stream = File.Open(filename, FileMode.Create))
            {
                TextWriter writer = new StreamWriter(stream);
                generator.GenerateResxFile(writer);
            }
        }
Esempio n. 2
0
        public void GenerateResx(string baseName)
        {
            var generator = new ResxGenerator(){ ConnectionStringName = ConnectionStringName };
            string filename = string.Format("{0}.resx", baseName);

            using (Stream stream = File.Open(filename, FileMode.Create))
            {
                TextWriter writer = new StreamWriter(stream);
                generator.GenerateResxFile(writer);
            }
        }