LINQ
There are 11 entries for the tag
LINQ
If for some reason you need to specify a specific connection string for a DataContext, you can of course pass the connection string when you initialise you DataContext object. A common scenario could be a dev/test/stage/live connection string, but in my case its for either a live or archive database. I however want the connection string to be handled by the DataContext, there are probably lots of different reasons someone would want to do this…but here are mine. I want the same connection string ......
I mentioned a while back that I had something I was working on that involved a change in language, actually a pretty radical change. I have been working on vocational project written in VB.net and made heavy use of LINQ to SQL. I wasn't sure of LINQ to SQL for anything else other than RAD and to be honest I'm still not. Anyway, I'm not getting into that debate. Needless to say I went all the way and don't use a single sproc in this project. Some of you will know I play cricket every Saturday for ......
LINQ goes so much further than just SQL and XML. Something like this is just why I love LINQ, a LINQ query on an ASP.NET ListView controls items. 1: Dim items = From lvi In AspNetListViewControl.Items _ 2: Where CType(lvi.FindControl("Drop... DropDownList).SelectedValue = someIntVar _ 3: Select lvi) Getting a ListViewItem's where the selected value of a DropDownList is set to the value I want. So simple, yet so powerful. The observant among you will notice that this is in VB.net, not my ......
I have recently came up against a perfect opportunity to get stuck into LINQ to SQL, its a small project where RAD is top priority. As often is the case I need to audit changes to properties, normally I would probably do some work in the getter and setter of the property, but of course with LINQ to SQL I don't have access to the properties in the same way. Looking through the intellisense of the LINQ generated class I can see a PropertyChanged and PropertyChanging event, perfect! Not exactly. Here ......
I seem to be working more and more my lappy these days...still always on the my PC at the office but when at home the laptop has taken over from my machine of choice...strange really because I love having two monitors and find it a fantastic way to work but I guess the freedom a laptop has to offer wins the day. Anyway, I digress...seeing I was working on it more and more I decided to get myself a Christmas present in the guise of a specialist notebook mouse, I looked at several offerings from Microsoft ......
You are all undoubtedly aware of LINQ to SQL, its fair to say its had a large amount of publicity and coverage in the .net circle. VS 2008 makes getting going with LINQ to SQL very easy but that is not the case with SQL Compact (yet!). However its not difficult if you have heard of a wonderful little app called SqlMetal, this little beauty will generate the .dbml files for you...happy days :) I have a small SQL Compact database to use for this demo, you can see it here in VS 2008 server explorer... ......
MIX is over and this is the first of two posts covering the final day. I am currently on the train home with my lappy in power saving mode, minimum CPU etc etc. 1.5 hours left so I should get enough time to say what needs to be said! Today I decided instead of going the main stream route all the way I would slip off to a smaller session. After a chat with Scott Guthrie (!) I decided to miss the first of his two part session on VS 2008 and asp.net 3.5, I read most of the content on his blog and have ......
OK, so just about everyone reading this post will be aware of LINQ, if not you can checkout that link, another great place is that man, ScottGu's blog. Anyway, I found myself with a spare few minutes (hence this post) which was largely due to how quick LINQ dealt with my small and simple task. I wanted to read user data out of a database and create a new XML file with that data (there is some stuff to go on after that but unless LINQ can compress and email files its use ends here!) There is nothing ......
If you are based in the southwest of England you are probably aware that there isnt a dot net user group and if you want to see any presentations you have to either be lucky enough and well planned to get in when MS come to Bristol but most likely theres the drive up the M4 to Reading. (I guess you could brave public transport and risk being late, getting lost or perhaps just not getting anywhere - bollox to that!!) I did post sometime ago enquiring how one would go about starting a user group - ......
Anders Hejlsberg on LINQ and Functional Programming - Charlie Calvert has a chat with Anders on the above subject; he goes into loads of details about how LINQ came about and how they(he) solved the problem. I wasn't exactly enthrawled for 30mins but it's certainly better than watching Eastenders! I am really looking forward to LINQ; I do loads of database and XML programming so it should be great...I did install the May CTP but it really messed with my intellisense in VS so decided to uninstall! ......
Maybe not total confusion but just a little! Perhaps I don't read enough about the subject but I could certainly do with some feedback to clear this up! .net 3.0 released the other day as was a WorkFlow tools for Visual Studio 2005 but WCF and WPD tools are still in CTP?!? What's all that about?! We have the runtime but not the tools? :-) Then there's LINQ and all it derivatives....where's that fit it? I thought that was going to be in .net 3? Dying to get my hands on LINQ!!!! Thoughts?? :) ......