COREHL7 API Online Help - Region 4: [CORE HL7 MSSQL] |

The COREHL7SQLSchemaInfo object provides basic informational access to your HL7 database schema(s). This class is also the BASE CLASS for two sub-classed sister objects:
•The COREHL7SQLImporter object.
•And the COREHL7SQLMaintenance object.
This means that ALL properties and methods you see here are also available in those classes as well.
private static HL7MSSQLController GetController() { string licensefile = "C:\\Licenses\\COREAPI.txt"; return new HL7MSSQLController(licensefile); } public COREException LastExeception { get; private set; } = new COREException(); COREHL7MSSQLConnector cn = new COREHL7MSSQLConnector(); HL7MSSQLController myCTL = GetController(); COREHL7MSSQLSchema mySchema; COREHL7SQLSchemaInfo mySchemaInfo; string myPrefix = "AAA"; //Constructor public CodeExamples() { if (!myCTL.License.IsEnterpriseLicense()) { //NOTHING WILL WORK. GET OUT return; } cn = new COREHL7MSSQLConnector("myserver", "mydatabasename"); //Connector will use trusted connection with a //connection timeout of 40 seconds (the default values) cn.TransactionRunning += TransactionEvent;
mySchema = myCTL.NewCOREHL7MSSQLSchema(cn, myPrefix); mySchemaInfo = mySchema.NewSchemaInfo();
//That is it we are ready to do everything. } public bool MySchemaExists() { if (mySchema == null) { LastExeception.SetException("MySchema is null", "MySchemaExists()", 12345); return false; } LastExeception.Clear(); return mySchema.VerifySchemaIsPresent().Success; }
|
|
|
