-
-
Save jplindgren/b7e963fb740f9c1122bc to your computer and use it in GitHub Desktop.
How to update the schema for an XPO object model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//How to update an XPO schema and create the XPObjectType table | |
using (Session session = new Session()) | |
{ | |
//Here we select one class from each assembly that contains XPO classes | |
//For example User is one of our XPO object model classes | |
Assembly[] array = { typeof(User).Assembly, typeof(XPObjectType).Assembly }; | |
session.UpdateSchema(array); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment