public void GenerateAbtractObjectClass(string classNamespace, string objectSchema, string objectName) { string className = string.Format("__{0}", renameDotNetReservedNames(objectName)); List <sql.DBColumn> columns = new sql.DataAccess(_connectionString).GetColumns( objectSchema, objectName, _columnLanguageTypeValues, _columnDataProviderTypeValues); var abstractClassTemplate = new sql.AbstractObjectClass(classNamespace, objectSchema, objectName, className, columns); string classText = abstractClassTemplate.TransformText(); File.WriteAllText(string.Format("{0}\\{1}.cs", _outputFolder, className), classText); }
public void GenerateAbtractObjectClass(string classNamespace, string objectSchema, string objectName) { string className = string.Format("__{0}", renameDotNetReservedNames(objectName)); List<sql.DBColumn> columns = new sql.DataAccess(_connectionString).GetColumns( objectSchema, objectName, _columnLanguageTypeValues, _columnDataProviderTypeValues); var abstractClassTemplate = new sql.AbstractObjectClass(classNamespace, objectSchema, objectName, className, columns); string classText = abstractClassTemplate.TransformText(); File.WriteAllText(string.Format("{0}\\{1}.cs", _outputFolder, className), classText); }