Tag | LINQ Posts

Next week (23rd March 2009) I am speaking at DevWeek 2009. DevWeek is a great conference which attracts top notch speakers (plus me – I feel such a fraud whenever I present there!). It is IMHO the best developer focused conference we have in the UK and I can’t wait to get there and soak in the great sessions + catch up with familiar faces + meet plenty of new ones. Be warned. There is a rumour that we are being given some new toys (Flip video cameras) to play with while we are there. However don’t ...
Follow Me On Twitter http://twitter.com/Mohamed_... So, a very short note on my last news is that now I’m in Abu Dhabi, UAE; for a while not having a laptop, which is why I haven’t blogged since dotNETwork CodeCamp’09. Then I thought of Micro-blogging. If you know Twitter already you know what I mean, if not, think of something like facebook status; micro space to say something that’s in your mind now. A good way to say something quick and it has been popular for technical guys and even some western ...
Hello. My name is Sergey Zwezdin. I work in company NeoConcept (Russia, Chelyabinsk) at position CTO. I am engaged in software working out on platform Microsoft. NET since 2004. Since July, 2008 I am Microsoft MVP, technical expertise - Visual C #. The area of my interests includes WCF, WPF, LINQ, ADO.NET Data Services (astoria), ADO.NET Entity Framework, and many other interesting technologies. To communicate with me use following e-mail sergey.zwezdin@gmail.com or MSN sergey.zwezdin@gmail.com. ...
Right, in my last post I wrote about creating a DBML file and hooking it all up through WCF, however, we only got to ‘retrieving’ from the database via the service. So, let’s presume you want to upload… We already had our contract: [ServiceContract] public interface ICarsService { [OperationContract] Car GetCar(int id); [OperationContract] void SubmitCar(Car car); } Of which we’ve tested the ‘GetCar’ method, let’s get to implementing the ‘SubmitCar’ method. We actually did implement some code in ...
This one has come up a few times lately, hence I felt it would be worth surfacing here. Short answer is - “yes”. Longer answer is described in detail over on IBMs site along with a detailed description of the limitations. Note that this also supports IBM Informix Dynamic Server and IBM UniVerse and UniData (U2) Data Servers ...
[Don’t forget to vote on what your experience has been with the Entity Framework in my marmite poll :-)] I get asked a lot about performance of our two ORMs against each other and against standard ADO.NET. The short answer is “Normally it is good enough. When it is not good enough, you need to do something to make it good enough” My slightly longer answer is “In general LINQ to SQL performs better on query, LINQ to Entities performs better on updates” But – people like numbers, tables and comparison ...
I wanted to make sure and draw attention to the effort that Brandon King in Harrison, Arkansas has given towards promoting this event. There are some major giveaways, and we will be arranging a carpool from Springdale to drive the 1:30 to give a good showing from the NWA DNUG crew. Details: Who: CLAUDIO LASSALA What: Details at http://odnug.org When: April 2nd 5:30 PM – 8:30 PM Where: North Arkansas College (Center Campus - Durand Center - Old Regions Bank Building), Harrison, AR Grand Prize Inspiron ...
Last week I gave a talk at Qcon London entitled ORM, EDM, ESQL, Entity Framework, LINQ to SQL, LINQ to Entities - confused? In the session I wanted to make a few points worth summarising here: ORM usage by Windows Developers is low compared to other platforms I believe this will change significantly now Microsoft has an offering ORM can be very productive but also dangerous I showed a demo which looked at lazy vs eager vs explicit loading vs projection Entity Framework is more than an ORM – the ORM ...
I wanted to share a couple of suggested Silverlight 2 reads, especially for those visiting my blog after the recent Winnipeg Code Camp talk I did on Silverlight 2. Pro Silverlight 2 in C# 2008 by Matthew MacDonald. This book is an incredible reference, covering almost every topic that you’d need to know for building Silverlight 2 applications (There’s no dedicated “Architecture” chapter, but I think that’s a topic best served currently by the Microsoft P&P Team and Prism). The book has the benefit ...
I’ve officially launched the Facebook UI for ASP.NET project at CodePlex at http://facebookui.codeplex.... It’s kind of a preview edition of what’s to come – and there’s quite a bit. Here’s a quick overview: Now: Design-time and run-time server support for about 30 FBML controls. Visual Studio IntelliSense support for FBML controls Web Site project templates in Visual Studio 2008 Version 1: All FBML tags within: Users/Groups, Profile-Specific, Embedded Media, Visibility on Profile, Tools, Forms, ...
Here's what's happening: Attendees: 428 Sessions: 73 Speakers: 49 Tracks: 15 Sessions: ASP.NET Make your Data Dance with ASP.NET Dynamic Databy Shawn Weisfeld + Show Description ASP.NET Dynamic Data is a framework that lets you create data-driven ASP.NET Web applications easily. It does this by automatically discovering data-model metadata at run time and deriving UI behavior from it. A scaffolding framework provides a functional Web site for viewing and editing data. You can easily customize the ...
The SDS team have announced their updated plans for SQL Data Services. There are plenty of changes to take in – but it looks to be a very positive step in response to feedback from folks who looked at the current CTP. Essentially SDS becomes a full relational database (SQL Server!) in the cloud which we access using familiar programming models such as ADO.NET and ODBC – you get stored procedures, triggers, views etc. As such it will become fairly trivial to “re-platform” on-premise applications to ...
A gotcha that got me :) If you’re used to using List<T> collections, and in particular the way they compare, then you need to know that an EntitySet (from LINQ to SQL) does the comparison differently… In my experience, if I’ve created a class, for example: internal class Simple { public int TheInt { get; set; } public string TheString { get; set; } public Simple(int theInt, string theString) { TheInt = theInt; TheString = theString; } } And I then add some instances of this class to a List<Simple>, ...
Now, I may be doing this wrong, but at the moment, it works :) I’m writing a service to communicate with a database, and provide a consistent front end for the applications that will be using it. In the past that has meant writing tonnes of CRUD (Create Read Update Delete) code, usually via Stored Procs, which are then accessed by a ‘DbAccess’ helper class of some variety. Not to mention the added bonus of writing the classes to store the data as it comes out. Fortunately the database I’m accessing ...

Tomorrow I’ll be giving a presentation at Southern Maryland .NET User Group on LINQ to SQL.  Details of the event can be found here:  http://www.communitymegaphone.com/ShowEvent.aspx?EventID=1022.

In this issue: Nikhil Kothari, Alex Knight(2), Lutz Gerhard, Nigel Sampson, Ofir Shemesh, Tim Heuer, Koen Zwikstra, Jeff Wilcox, Tess Fernandez(6), and Corey Miller. Shoutouts: Corey Schuman has a big list-o-Silverlight 2 books on his site: The State of Silverlight 2 books .. thanks for the shoutout, Corey! Martin Grayson announced that Blacklight v3.0 (Mar09) released! ... check out his post for all the goodness involved in this! From SilverlightCream.com: Silverlight.FX and Silverlight Store Sample ...
I started looking at the latest the EF team had to offer and while things have progressed immensely over the years it appears that there is still some room for improvement. Given the turmoil over the possible demise of LINQ to SQL I know that the use of Entity Framework is inevitable for me and probably just around the corner. With my newest project I have started to plug in an ADO.NET Entity Data Model (EDMX) where I would normally plug in LINQ to SQL Classes (DBML). I still dropped the file into ...
After going through the web ,I haven't got anything that i can use directly to enable drag drop between two listview controls or within same for multiple items. The best thing available in my opinion is this one by Josh smith: http://www.codeproject.com/... But it is for single SelectionMode only Another one for multiselct is this: http://www.codeproject.com/... But the second one has many limitations.. So i have done some work to extend ...
I have been busily working away at building infrastructure for the Dare to Dream Difference Challenge. Since my last post, I have finished the hardware prototype, although I still need a cabinet. The project now consists of a Device Solutions Tahoe II development board, an XBee Series 2 module, an AR1010 FM Receiver, an LM4832N audio amplifier, and two 0.5 watt speakers (pictured here). Not pictured is the ZigBee base station. I have made a shift in the approach I was taking for the software. Originally, ...
I finally had an entire day of sitting at home where I did not have to pack. I put my slides and my demos on Sky Drive, including the Linq to XML information with the XML file databinding commented out and the webservice code (using WCF). Here is the slide link: http://cid-8e2654c5f01e6069... Here are the demos: http://cid-8e2654c5f01e6069... I am not ...
On Tuesday I gave a session on the parallel enhancements coming in Visual Studio 2010 and .NET 4.0, specifically the Parallel Task Library and PLINQ. Thanks to all those who attended and acted as my “guinea pigs” for this session :-) The main links I wanted to share are: Download VS 2010 CTP and Remember to set the clock back or Download Parallel Extensions June CTP for VS2008 Join in the discussion forums Team blog http://blogs.msdn.com/pfxteam/ MSDN site http://msdn.com/concurrency Overview Of ...
Lately during development I have encountered a problem while operating on collections using anonymous types, LINQ and lambda expressions. The solution turned out to be quite simple and short, yet very usefull. Short article presenting this problem as well as its solution is available in articles section. Here`s direct link:
DIRECT LINK
All right, all you developers out there... let's see a show of hands. How many of you delight in finding new ways to solve a problem? You. Yes, you in the back. Get your hand up. You can't call yourself a developer if you don't enjoy finding a new (preferably somewhat convoluted) to solve a problem. I've been doing some work that involves converting C# code to VB.NET code. I was sitting in the speaker lounge at VS Live, shortly after getting into San Francisco. I'd played a little bit on the plane ...
If you're working with Silverlight and you don't have a copy of John Papa's Data-Driven Services with Silverlight 2, you're spending too much time somewhere. When I finished Chapter 2 and thought I was done... wow what a bunch of stuff still remained! REST, WCF, JSON, LINQ, Entities, and on and on. Lots of detail, and lots of code on the pages (for those of us that think better that way). I'm thinking about buying the eBook version just so this one doesn't get as ragged as Petzold's "Programming ...
On March 10th, I’ll be presenting an ASP.NET control library for Facebook at the Phoenix ASP.NET Users Group. Among other things, we’ll be talking about how to create a Facebook application using ASP.NET, debugging aids, and the Facebook API. Along with that, Terralever will be releasing our library to the open-source community on Codeplex. (This post will be updated once we’ve done so). The library is currently in varying degrees of maturity. We’ve got about half of the FBML controls supported in ...
A couple of weeks ago, I was working on some client side UI elements on one of my projects. I was able to apply some things that I have learned recently (some more recently than others). The problem is that I have a domain object that tracks the selected days of the week. Currently the object uses a List<DayOfWeek> to manage the selections. (This is not exactly the most safe thing because a client could set the list to null. However, that's a different subject.) What I was looking for was an ...
This book applies to VB.NET developers, although some of it can be applied to C#. It was an average read. I'd recommend this to developers now getting into refactoring. Introduction. Part I: Introduction to Refactoring. Chapter 1: Refactoring: What’s All the Fuss About? Chapter 2: A First Taste of Refactoring. Chapter 3: Assembling a Refactoring Toolkit. Chapter 4: Rent-a-Wheels Application Prototype. Part II: Preliminary VB Refactorings. Chapter 5: Chameleon Language: From Weak Static Typing to ...
Many get confused over the two way databinding concept. This is usually done by implementing INotiyPropertyChanged interface.You can find many examples with INotiyPropertyChanged if you google for it. Here I am presenting a very basic example of WPF databinding to show its advantages. Create a WPF Application called "TwoWayDataBinding". You have app.xaml and Window1.xaml. Add one class called Customer to the project. The code for the class is bellow. using System; using System.Collections.Generic; ...
The NYC Azure Cloud Computing Group meets again February 23, 2009 Microsoft, 1290 Avenue of the Americas, 6th floor, NYC, NY 6:00 - 8:00 pm http://www.clicktoattend.co... BE SURE TO REGISTER... Space fills up fast and Building Security Requires it. This month... Chris Rolon, Architectural Consultant Neudesic LLC will be presenting on... Azure Cloud Storage When trying to build services that are highly scalable, durable and always available, the storage of data is critical. In this session ...
In This issue: Jim Lynn, Pencho Popadiyn, Tim Heuer, Scott Guthrie, Mike Snow, Maurice de Beijer, and Dean Chalk. Shoutouts: Tim Sneath responds to Adobe's latest salvo: Silverlight is FIZZING, Not Fizzling Walt Ritscher has Reflecting on Design #9 up, and the 'light graffiti' stuff is pretty cool :) Azret Botash reports an update on the free Silverlght datagrid from Devexpress: Free Silverlight DataGrid is Fast! If you think you're up to it, Laurence Moroney says Solve the riddle, and get a free ...
Have you ever encountered that LINQ to SQL is not giving you latest data you just updated on a specific row? Well apparently, LINQ to SQL is caching your objects on the first call and on subsequent requests for the same row, it gives you the object in the cache – even if you have made updates to that row after your first request. It could be really annoying to see your updates right there in the database but LINQ is giving you your old data. Your solution is to disable object tracking (caching for ...
In this issue: Maurice de Beijer, Jesse Liberty(2), Corey Schuman, Mike Snow, Tim Heuer, and Radenko Zec. Shoutouts: Andras Velvart sent me a link to a stunning commercial application using Silverlight and DeepZoom... don't take my word for it, try it out: Zoomery. If you're interested in 3D in Silverlight, check out what Telerik has going on: 3D in Silverlight from Telerik Dan Wahlin has his My Latest Silverlight Articles post up. From SilverlightCream.com: Using Ninject with Silverlight to make ...
Last Thursday evening (Feb 5th), SSE sponsored a local developer bootcamp covering VS.NET 2008. We had a great turnout and a lot of great discussion and questions. If you are in the St. Louis area and interested in being invited to these bootcamps please drop me a line at kvgros@sseinc.com. First, I wanted to thank everyone on my various teams who contributed ideas for the talk. While I did do a lot of research for the event, many developers contributed some good ideas that found there way into the ...
In this issue: Jesse Liberty and Nigel Sampson. Shoutout: Adam Kinney has a post up about all the Microsoft product groups on Twitter: Microsoft teams and products on Twitter, and thanks for the shoutout, Adam :) From SilverlightCream.com: Background: Extension Methods, Silverlight & Linq Jesse Liberty has a blog post up that digs into extension methods. Even if you're already familiar with them, this would be a good read to make sure you're not missing something! He also has links out to a couple ...
So, I’ve just hit a snag. It’s not a big snag, but it’s somewhat fundamental. I was happily going about my business. I’d gotten the Browse module up and running that was going great. I was about to start in on the Add or Voting module. In order to do this one, I’m going to actually need an implementation of the IGameService to exist. I hadn’t forgotten it, but I didn’t want to get mired in it until I had Browse up and running, since Browse didn’t really need it. When I went to implement IGameService, ...
The System.Core assembly in .NET 3.5 contains the main LINQ methods for dealing with objects such as the Max() extension method. Like many of the LINQ extension methods, the Max() method has many overloads that allow you to do things like this: 1: List<int> list = new List<int> { 1, 2, 17, 14, 21, 4 }; 2: Console.WriteLine("Max: " + list.Max()); //<- "Max: 21" This is all well and good but what if you need to do something a little more interesting? There are endless examples to think ...
The Frederick .NET User Group (FredNUG) will have its next meeting on February 25th at the Urbana Regional Library. This should be a great evening of talking .NET, doing some social networking and then wrapping-up the evening with a raffle. The scheduled agenda is: 6:45 PM - 7:15 PM - Intro Topic: Intro to LINQ with Ganesan Muthiah 7:30 PM - 8:30 PM - Main Topic: Using Silverlight in SharePoint with Sahil Malik Main Topic Description: Silverlight is one of the most exciting things to come out of ...
I find it very therapeutic to “sync to paper” on a regular basis. Yesterday I was grumpy as I had way too much in my head and in my Inbox. Late last night I grabbed my trusty Moleskine and wrote it all down – I “synced to paper”. I slept well and woke up grump free. I also realised while “syncing to paper” last night that I carry around a lot of links in my head to stuff I find in my job which I keep meaning to share but never quite do. The sort of stuff I might mention to you if we met in the staff ...
In the UK I am the technical editor for the MSDN Flash. This weeks edition was a special focused on free software. I gathered together some of the best downloads based on recommendations from friends, colleagues and customers (which in case you were wondering is an overlapping group of individuals) plus a few of my personal favourites. I have tried to get something for everyone. From fairly generic utilities such as Free Download Manager and Unlocker, specialist tools such as SketchPath for XPath ...
The following is a simple checklist you can use when building web applications. Much of this still applies to other technologies and can easily be extended. I try not to get too specific on technology or methodology, but it is definitely leaning toward ASP.NET. If you can think of something I am missing or disagree, please leave a comment. Detailed information follows the checklist. How much of the checklist you follow will depend on the project. If its just a hobby site, you may skip items like ...
Over my last handful of posts, Building a Simple Photo Gallery in ASP.NET MVC Framework, Returning Thumbnails With the MVC Framework and Adding Lighbox.js to the Simple Photo Gallery I've built a simple photo gallery on the ASP.NET MVC framework. In this post, we're going to continue that project by adding paging rather than showing all of the pictures on the one page. In this post, we leverage LINQ to select the data in the model that we want to show and implement paging. Read the full post at Adding ...
location: At Lamar Advertising Wednesday, January 28, 2009 5:45 PM - 8:00 PM Sponsored by: TBD Presenter(s): Brett James and Steve Schaneville Brett is a Senior Development Consultant at Sparkhound, Inc. with over 10 years of software development experience. The last 6 years have been spent working with .NET technologies for both Web and Windows applications. Steve is a Software Development Manager at Amedisys, Inc. His experience includes 9 years of C++ and C# development in Windows and Web applications. ...
Sometimes new features are added to a language which fundamentally change how we do things (e.g., when generics was added to .NET 2.0). However, there are other times when features are added to the language that are “syntax sugar” or “nice to have’s”. My outlook on those items has always been that “syntax sugar” is typically a good thing – if there is some feature that allows the code to be more expressive/readable then that is a great thing. Sure, the IL might not be any different behind the scenes ...
In the UK we are working with InnerWorkings to create a great offer of training to UK developers. We still have some stuff to sort out but I am hopeful that we will be able to share the details of this in the next few weeks. In my previous depth role we used InnerWorking successfully to help early adopters get up to speed with the core technologies which we then built on with our own labs, briefings and workshops. We were very impressed with the inventive format they use and the quality of the training. ...
We have a rather impressive set of new technologies for working with data – LINQ, LINQ to SQL, LINQ to Entities, Data Services, ASP.NET Dynamic Data etc. What I am finding is… they don’t all get on with each other as well as you might have thought. My current battle is using ADO.NET Data Services with LINQ to SQL which is a) clearly something you might want to do and b) is something that isn’t going to work for you straight out of the box ...
The world of LINQ in a concept map ...
In my previous post I explained a little history of why this blog has come about – but now I wanted to explain why the heck you might read it :-) You should expect: Information on the very latest developer related technologies for building applications for Windows – client, server and cloud. A strong bias towards data - Object Relational Mapping, “Data in the Cloud”, Syncing data, RDBMS systems, N-tier data etc. Specifically I will be initially covering the ADO.NET Entity Framework, ADO.NET Data ...
Join us for TechFuse 2009 on March 17! It’s back and even bigger than last year! With 36 sessions and two keynote presentations to choose from, TechFuse 2009 is the most cost-effective way for IT and Developer pros to get up-to-date, 200-300 level education on the topics that matter to your role. TechFuse will provide you resources on the latest developments in IT and Developer trends, technologies, application implementation issues, products and services from tons of local professionals. Website: ...
I was asked on Friday by a friend how one can consume JSON in Silverlight. At the time, I just said start with the System.Json namespace and I’ll get you a sample later. Well, here’s a sample and a peek into my head because I couldn’t just stop with creating the sample that he needed. In the end, I did a couple of different Silverlight examples including leveraging the JsonObject and LINQ. Then I ended up doing samples in raw JavaScript, MSAjax, Prototype and JQuery. Finally I ended it all up by ...
As you might have seen, there has been some blogging about named format strings in the last days. Fun With Named Formats, String Parsing, and Edge Cases (Phil Haack) Named Formats Redux (Phil Haack) Named Format Strings(James.ToString()) If you didn't came across it, the general idea is to use something like: "foo '{foo}' bar: {bar}".Format(new {foo = "abc", bar= 123}) Since I already had an analog solution for this problem I thought it would be fun to run it in 'competition' with the other implementations. ...