Hi -
I am trialing Entity Developer v 4.3.178 building an NHibernate model.
Once I have generated my C# classes, how do I add methods to them without the methods being overwritten if I need to regenerate my model? The "Add Method" button in the ED UI is disabled and there is not Methods node in the Model Explorer as mentioned in the Help file.
Thanks,
Peter
Model methods
Re: Model methods
The "Add method to Context Model" button is intended for work with stored procedures, working with which is not supported in NHibernate for now.PeterWood wrote:The "Add Method" button in the ED UI is disabled and there is not Methods node in the Model Explorer as mentioned in the Help file.
You can turn on the generation of partial classes in the template (in the Generation section of the Properties window, set the Generate Partial Class parameter of the template to True).PeterWood wrote:Once I have generated my C# classes, how do I add methods to them without the methods being overwritten if I need to regenerate my model?
Then generate the partial classes and add method descriptions to them.
Re: Model methods
Thanks Helen, I'll see how that goes.