Charles wrote:
I'll see what I can do
C
Pass. I'm already overdue for a dunk tank (sorry Jenn).
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Charles wrote:
I'll see what I can do
C
staceyw wrote:Thanks to all. Very informative. However I am still wondering where the business logic goes? My brain wants it to go inside the EF so I can code it in 1 place using c# (for example) and not have it sprinkled all over the client, BLL, and sprocs in the server. Is this the case? Do I use code-behind to add my BL inside the EF and it travels with the EF? If so, great, I would like to see a video on it. Also, personally, I would like to never have to switch into tsql again as I don't like moving between DSL and keeping those all fresh in my head, plus all the added complexity. Will we be able to code our sprocs inside the EF using .Net?
staceyw wrote:
Also, as you hinted to. It seems to me that the model I really want is have the EF be exposed as a service on the server side. Then my client can connect to it (using Linq) using a client side EF provider. So it will look and feel like DLinq, but will be talking to EF front end instead of ADO/DB directly.
And what I "really" want to do someday is this from the client:
Future<Customer[]> f = Future.Create(() =>
{
return DB.Customers.Where(c=>c.Active==true);
});ObjectDumper.Write(f.Value); // Wait and print active Custs.
So this "ships" the Func to the Server (i.e. does not convert to TSql). And the server processes Func directly (like a dynamic sproc). So it is like directly passing a sproc right into the server and getting results. Objects are not created or serialized until rehydrated on the client, the stream from server to client would be byte[] (i.e. not xml).
Thanks much.
MetaGunny wrote:I never understood the entity framework, but now I do. It seems very interesting.
MetaGunny wrote:
Currently, I have a data access class I wrote called "StoredProcedure". I then have code generators to create the stored procedures, and the VB.NET classes. It's specific to the type of operation, such as insert, update, delete, select as output params, select multiple, etc.
Although I think it's very clean, replacing all of that with the entity framework, if it's clean and is performant, would be great.
However, the stored procedure class I created offers quite a bit and has some intelligence in it. For example, formating the sproc name, validation, not adding certain parameters if they don't pass validation and that parameter has a default, etc.
MetaGunny wrote:
Also, I plan on adding possibly some type of load balancing to it, possibly based on the stored procedure name (or parameter specifiying read only or data is modified by this sproc), and also user based specific connection strings. (This way, for example, you can setup mirroing database, and have the read-only stored procedures executed on the mirrored database.)
I'd be curious to see if the entity framework would be able to do this as well, and\or whether or not you can inherit and modify certain objects that are responsible for this.
cbenard wrote:Polita,
Thanks for the answer about using SPs with LINQ and Blinq. For clarification though, am I to understand that if you do standard LINQ queries like "from c in .... where .... select...." that it will not be optimized in SQL sql server? If I'm understanding that correctly, it is simply passing "select ... from ... where..." to SQL server as an ad hoc query if you're not calling SPs.
Thanks again.
Ion Todirel wrote:right, there are not such thing as "the best programming language"! Microsoft Research guys should know this better that anyone, advanced... would be nice to explain how... and sience C#/VB share same runtime how VB can be more advanced than C# ?
Mr. Beckman wrote: We want to turn Visual Basic into not only the best and most popular programming language in the world but the most advanced programming language in the world.