calling OracleDataSetGenerator question
Posted: Thu 06 Nov 2008 11:48
I want is generate *.Designer.cs file for xsd-file of the typed dataset.
I want to do it in the run time or from the command line. NOT by "Run Custom Tool".
Do you have some kind of tool like standard .NET xsd.exe file.
Or will you please help me with generating from the code. I tried this:
class DummyProgress : CoreLab.Common.Design.IVsGeneratorProgress {
public void GeneratorError(bool isWarning, int dwLevel, string
bstrError, int dwLine, int dwColumn) {
}
public void Progress(int nComplete, int nTotal) {
}
}
private void GenerateOracleCodeFile(string inputFileName) {
CoreLab.Oracle.Design.OracleDataSetGenerator gen = new
CoreLab.Oracle.Design.OracleDataSetGenerator();
string rdr = File.ReadAllText(inputFileName);
IntPtr rgbOutputFileContents;
int pcbOutput = -1;
CoreLab.Common.Design.IVsGeneratorProgress
pGenerateProgress;
gen.Generate(inputFileName, rdr, "MyNamespace", out
rgbOutputFileContents, out pcbOutput, progress);
}
I get an error "Get CodeDomProvider Interface failed.". I tried different ways to set CodeDomProvider, but unfortunately I haven't succeeded.
Will you please help me...
________
Mercedes wiki
I want to do it in the run time or from the command line. NOT by "Run Custom Tool".
Do you have some kind of tool like standard .NET xsd.exe file.
Or will you please help me with generating from the code. I tried this:
class DummyProgress : CoreLab.Common.Design.IVsGeneratorProgress {
public void GeneratorError(bool isWarning, int dwLevel, string
bstrError, int dwLine, int dwColumn) {
}
public void Progress(int nComplete, int nTotal) {
}
}
private void GenerateOracleCodeFile(string inputFileName) {
CoreLab.Oracle.Design.OracleDataSetGenerator gen = new
CoreLab.Oracle.Design.OracleDataSetGenerator();
string rdr = File.ReadAllText(inputFileName);
IntPtr rgbOutputFileContents;
int pcbOutput = -1;
CoreLab.Common.Design.IVsGeneratorProgress
pGenerateProgress;
gen.Generate(inputFileName, rdr, "MyNamespace", out
rgbOutputFileContents, out pcbOutput, progress);
}
I get an error "Get CodeDomProvider Interface failed.". I tried different ways to set CodeDomProvider, but unfortunately I haven't succeeded.
Will you please help me...
________
Mercedes wiki