This question is locked. New answers and comments are not allowed.
After a few false starts I am off to the races with with the Visual Designer and so far am really loving it. A couple of questions that maybe again are answered elsewhere but I have not yet found:
1. When it comes to the EntityDiagram context (Linq to SQL equivalent DataContext) how do I manage this in an ASP.NET web application? I want to run things as quickly and efficiently as possible on the web server so I don't believe wrapping each request in a using statement and creating a new context for every operation may be most efficient. Would I perhaps use something like shown here and create a per thread context? http://www.west-wind.com/weblog/posts/246222.aspx
2. I am guessing that I don't wrap anything with transactions either as I don't see anything along those lines as a property to set on the EntityDiagram context. Of course thinking through it I am also guessing that when the .SaveChanges() is called on the context, that if an error occurs on writing to the database, then none of the changes would take - so I guess technically it is wrapped in a transaction - hah - there - answered my own question.
3. So I know there are improvements coming and that a new OpenAccessDataSource is being worked on to assist with Visual Design - but I am working on a project immediately that involves using a lot of Grids and Dataforms within Formviews. I am trying to understand the best way from code to handle the updates to the forms and grids using the OpenAccess generated Entity Diagrams. Getting the data is easy - more ways than I can count to pull the data - .GetAll<T>, context.Object.ToList<>, Linq query, etc.. simply set as the DataSource for the Grid or FormViews. Any tips on enabling the updates, deletes, inserts and tying those methods quickly to the new OA Visual Designer way of doing things. If this is an amature question please feel free to admonish me - but I really want to move fast with this new product
4. To get the pest database performance, it seems that hooking a WCF service up to serve the OA objects might be best. I noticed that you have WCF Services based Generation Wizard that can be downloaded. Does this interact with the new Visual Designer or are these kind of seperated pieces? Please forgive the questions and thank you for what looks to be an awesome product!
1. When it comes to the EntityDiagram context (Linq to SQL equivalent DataContext) how do I manage this in an ASP.NET web application? I want to run things as quickly and efficiently as possible on the web server so I don't believe wrapping each request in a using statement and creating a new context for every operation may be most efficient. Would I perhaps use something like shown here and create a per thread context? http://www.west-wind.com/weblog/posts/246222.aspx
2. I am guessing that I don't wrap anything with transactions either as I don't see anything along those lines as a property to set on the EntityDiagram context. Of course thinking through it I am also guessing that when the .SaveChanges() is called on the context, that if an error occurs on writing to the database, then none of the changes would take - so I guess technically it is wrapped in a transaction - hah - there - answered my own question.
3. So I know there are improvements coming and that a new OpenAccessDataSource is being worked on to assist with Visual Design - but I am working on a project immediately that involves using a lot of Grids and Dataforms within Formviews. I am trying to understand the best way from code to handle the updates to the forms and grids using the OpenAccess generated Entity Diagrams. Getting the data is easy - more ways than I can count to pull the data - .GetAll<T>, context.Object.ToList<>, Linq query, etc.. simply set as the DataSource for the Grid or FormViews. Any tips on enabling the updates, deletes, inserts and tying those methods quickly to the new OA Visual Designer way of doing things. If this is an amature question please feel free to admonish me - but I really want to move fast with this new product
4. To get the pest database performance, it seems that hooking a WCF service up to serve the OA objects might be best. I noticed that you have WCF Services based Generation Wizard that can be downloaded. Does this interact with the new Visual Designer or are these kind of seperated pieces? Please forgive the questions and thank you for what looks to be an awesome product!