Skip to content

Instantly share code, notes, and snippets.

@jplindgren
Forked from petros/gist:110406
Created February 10, 2016 20:38
Show Gist options
  • Save jplindgren/b7e963fb740f9c1122bc to your computer and use it in GitHub Desktop.
Save jplindgren/b7e963fb740f9c1122bc to your computer and use it in GitHub Desktop.
How to update the schema for an XPO object model
//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