Skip to content

Instantly share code, notes, and snippets.

@petros
Created May 12, 2009 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save petros/110406 to your computer and use it in GitHub Desktop.
Save petros/110406 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