Prerequisites: A valid RuleApplicationDef
Namespaces: InRule.Repository, InRule.epository.EndPoints
Classes: RuleApplicationDef, EndPointDef, DatabaseConnection
References: InRule.Repository.dll
See Also: Dynamically Generating a Rule Application Schema
The following code sample demonstrates how to modify the connection string of a Database Connection
EndPoint.
// Get endpoint from loaded RuleApplicationDef object
EndPointDef endPointDef = ruleAppDef.EndPoints["DatabaseConnection1"];
// Cast into a DatabaseConnection object
DatabaseConnection dbConn = (DatabaseConnection)endPointDef;
// Update the connection string
dbConn.ConnectionString = newConnectionString;
Comments
0 comments
Please sign in to leave a comment.