Is there a way to edit Context class with edit window

Thread is closed for posting
2 posts, 0 answers
  1. Jin
    Jin avatar
    80 posts
    Member since:
    Jun 2012

    Posted 04 Sep 2012 Link to this post

    Is there a way to edit a created Context class with edit window? If the entity class and context is put under different project. Once my entity class another table, how to update to include correspond class in context class with a edit window?
  2. Alexander
    Alexander avatar
    727 posts

    Posted 06 Sep 2012 Link to this post

    Hi Jin,

    As I mentioned in your other thread, the easiest way to update the context class generated in another project in order to include newly added persistent classes is to delete the existing tt/cs file and run the Create Domain Context wizard again.
    If you have deleted the .tt file and left only the .cs one, you could also manually add new endpoints for the new classes in the same manner, as the existing endpoints were generated:
     public IQueryable<Employee> Employees
            return this.GetAll<Employee>();

    the Telerik team
    Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Back to Top