This is a migrated thread and some comments may be shown as answers.

Is there a way to edit Context class with edit window

1 Answer 30 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jin
Top achievements
Rank 1
Jin asked on 04 Sep 2012, 07:43 AM
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?

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 06 Sep 2012, 02:57 PM
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
{
    get
    {
        return this.GetAll<Employee>();
    }
}
        ...


Greetings,
Alexander
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!
Tags
Design Time (Visual Designer & Tools)
Asked by
Jin
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or