Tag | LINQ Posts

C# 3.5 provides a lot of good features and here are a few of them. Implicitly Typed Local Variables: The compiler derives the type from the initialized value. // Implicitly typed local variables. var myInt = 0; var myBool = true; var myString = "Time, marches on..."; These are greatly useful while using with LINQ. Automatic properties: No need to write the entire property syntax. class Car { // Automatic property syntax. public string PetName { get; set; } } · But they cannot be used to define read-only ...
Microsoft EDC 2008 Website is UP. You Can Click Here To Register. EDC will be April 13 and April 14 - In Cairo International Conference Center (Agenda) But Watch out. The Attendance Fee is 100 EGP. There're Invitations Available. An Invitation Code is required to register, and you get that by calling the guy mentioned in the right top part of the registration page, and you can call his mobile phone only on Egypt working hours. I've written about Microsoft EDC 2008 (Egypt Developers Conference 2008) ...
Jesse Liberty on LINQ tips/tricks, and Sean Blakemore on navigating between XAML pages. From SilverlightCream.com: LINQ To SQL In preparation for a SQL article coming up, Jesse Liberty is blogging about smaller things he's finding during the creation process... digging out nuggest for us :) Silverlight 2 Navigating Between Xaml Pages Navigating between XAML pages is not something I've done yet, but it might be an option for the code I'm working on, and I've seen discussions about it. Sean seems to ...
I did my first Magenic Webinar (webcast) today, and I think it went really well. Andy Schwarz (my co-presenter) does a great job of covering all the non-demo parts and definitely kept the pace right where it needed to be. The topic was Visual Studio 2008 in general, and LINQ / AJAX specifically. It was a lot of fun building the 3 demos and I'll probably do something similar again soon. We got some really good questions as well, including a couple I need to go research. I also saw at least one familiar ...
There might be a few samples of working with web services in Silverlight but I promise I'll keep you interested with VB.NET exclusive feature VB Literals. This is going to open a whole new way of looking and working with XML and Web Services. *Note: Don't attempt to do everything I do in this tutorial in C# (espcially consuming WebService in Silverlight 2) because you simply can't, C# or any other language doesn't have this feature, so stick to VB.NET for consuming you can use C# for the rest, I'll ...
I have been very busy lately with different projects and now I have a little bit of time on my hands to play around with Silverlight 2. As I have promised before loads of Tutorials are coming your way. So stay tuned. I am little late in blogging, so there are many tutorials already available, so I'll cut the long way and come directly to doing complex things in Silverlight, so if you are expecting "Hello World" in Silverlight then look else where. I will be posting tutorials in VB.NET, and if possible ...
Wanna see something neat? Create an ASPX page in Visual Studio and add a GridView Control. Leave the name as GridView1. (You can do this any number of ways, but I happened to do it in an aspx page.) In your codebehind page, add the following to the form.Load event: Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load Dim filter As String = "System" Dim query = From a In AppDomain.CurrentDomain.Get... _ Where a.GetName().Name.Contains(f... _ ...
As you can no doubt see below, I'm doing a free webinar for Magenic this coming Tuesday (3/25/08) highlighting what's new in Visual Studio 2008. It's a little under an hour, including some marketingese, so I'll be doing some (2-3) demos specifically addressing LINQ and AJAX. If you want to check it out, here's the link: http://guest.cvent.com/EVEN... See you then ...
As I've mentioned in recent posts such as here, here and here, I've been very interested in Domain Specific Languages (DSLs), especially with regards to F# and the DLR as well. I recently re-listened to Software Engineering Radio Episode 52 with Obie Fernandez discussing DSLs in Ruby. One of the things that attracted me to Ruby for this was the flexibility of the syntax for closures, mixins, etc. Anyhow, it's a good listen and if you're new to the subject, you should give it a go. Also, there is ...
Time for another adventure in F#, covering the 101 level basics of the language and why I think it's useful and how it can even help your C# as well. This time, I want to spend a good deal of time on pattern matching and a few other topics. Where We Are Before we begin today, let's catch up to where we are today: Part 1 - Basic functional programming Part 2 - Currying and Tuples Part 3 - Scope, Recursion and Anonymous Functions Part 4 - History of F#, Operators and Lists So, today, like I mentioned ...
Jose Fajardo has a Control Contracts Diagram, Jesse Liberty binds a DataGrid to a collection, Andy Beaulieu has his 'Sort the Foobars' up to SL2, Imran Shaik takes a hard look at SL2, Pete Brown discusses Accessibility in SL2, LINQPad - 'nuff said, and Michael Washington on SL2, WS, and DNN. From SilverlightCream.com: Silverlight Control Contracts Diagram - For Skinning Jose is out there ahead of most of us as usual, and has a Control Contracts Diagram for download ... very nicely done... thanks ...
There are really a whole bunch of great resources out there that help the community get up & running with LINQ. Personally, with all the additional providers that I've seen (Qak Leaf List) - several of which I see great use for - LINQ to SharePoint and LINQ to LDAP / LINQ for AD. In regards to tools, LINQ Pad is the tool that allows you to toil with the syntax, etc. LINQ Pad And now, here's a good 100+ pages on LINQ syntax in C# 3.0. Book Preview: C# Query Expressions and Supporting Features ...
This is the email I sent to SilverKey Tech. Egypt dev team yesterday, sharing here as usual. Article: Info Q: Don't Let Consumers and Service Providers Communicate Directly Just because someone is developing with Web Services does not mean they are following SOA principles Just because you're using HTTP and HTML doesn't mean you get into that camp and vice versa Weblog: "Making IT work" - Musings of a Holistict Architect Weblog: Udi Dahan Article: Autonomous Services and Enterprise Entity Aggregation ...
In Part 2 of this series, we created an ADO.NET Data Services that made the Northwind data available. In today's blog post we are going to talk about how to consume the Northwind service. You can interact with an ADO.NET data service from any application that can send an HTTP request to an ADO.NET data service URI, and that can process the response in the format that is returned from the data service. To demonstrate this, we will create an ASP.NET web site to displayed the data retrieved from our ...
In my spare time I have created an implementation of active record using the new LINQ to Sql framework. Read more at http://www.eclipsewebsolutions.com.au/AboutUs/Articles/AnActiveRecordImplementationwithLINQ/tabid/87/Default.aspx.
This is part one of a multi-part post where I will show some of the techniques we've been using to parse NIEM XML documents using LINQ. Microsoft has definitely put a lot of time into thinking out the System.Xml.Linq features. When working with NIEM XML the essential thing to remember is that the only thing that ever really changes is the name of the tag and sometimes the namespace. This makes NIEM very easy to parse with LINQ because LINQ does not look at an XML document like the DOM - a hierarchical ...
In my previous post, I gave you the introduction of ADO.NET Data Service. Now I will show you step by step how to create an ADO.NET data service using Visual Studio 2008 and the Entity Framework Tools (December 2007 CTP). I am going to use the Northwind sample database to implement the service in this example. The Northwind database can be downloaded from: http://go.microsoft.com/fwl... 1. Create an ASP.NET Web application (C#) in Visual Studio. Let's name the project NorthwindDataService ...
LINQPad lets you interactively query SQL databases in the brand LINQ language. For those who are just started playing with LINQ, this tool is a great way to learn LINQ, and for those who are already familiar with LINQ and use it everyday, it can be used as a nice utility to test/debug your LINQ queries before you put them into your project code. LINQPad can be downloaded from http://www.linqpad.net/ No installation is required after the download. It's also pretty straightforward to use LINQPad. After ...
Check WindowsClient.net for updates Some parts of the demos are not available yet in the current build - wait for the next beta Compatibility with Silverlight is important Same tools, designers, code, markup... This summer, .NET framework 3.5 service release Improved setup Fuill install available Also client-focused ~30MB install Parts of WCF Parts of LINQ WPF Deployment of application will be simplified MSI, ClickOnce, XBAP MSDN Reader demoed, looks really good. Source code is available Add-In framework ...
Microsoft Data Platform Rich data services from SQL Server Using of course SOAP REST and APP within SQL Server SSDS. Live contacts has ADO.NET Connections... SYNC Framework synchronize contacts between endpoints. pulling or GET from url into xml or web service. Metadata file with Vcard info. No invoke needed within browser just service on box? SQL Server Data Services: Application Agility Scales without limits Business Ready SLA Scalable or downgradable to 2005 or 2000? SQL Server Data Services Layers: ...
I am a huge fan of Pablo Castro(the presenter). Astoria has become ADO.NET Data Services Framework. Data in the web: Ajax applications Silverlight applications Online Services Mashups Restful Interface for Data: Just Http Data as resources, HTTP methods to act on it. Uniform URL syntax Every piece of info is addressable Multiple representation Use regular HTTP content-type negotiation Atom, JSON, Plain XML Book: Restful Web Services Drill down data using Astoria(http request or get) Model and Operation ...
Joe Stegman, Mike Harsh V2 Beta1 today V2 Beta2 (go live) in Q208 No date for final release yet Visual Studio packages all necessary files into a XAP (which is actually a Zipped archive) New layout elements (Grid, StackPanel, etc...) New controls (TextBox, Button, etc...) Using WebClient for simple HTTP requests asynchronously (confirming that synch HTTP requests is just not possible anymore!) Converting XML for .NET objects: LINQ to XML XML Reader XML Serializer Very cool formatted datagrid demo! ...
Pretty full room. Sorry VERY full room. Glad I cam not too late, even managed to find a plug for my laptop. Any application will need to communicate wit a source of data outside of the browser Product catalog, product database, etc... What kind of data? media (images, sounds, videos) feeds specific services for your app Existing Intranet services public internet services Silverlight 1.0 connects to Media already to connect to other services, use JavaScript and AJAX In Silverlight 2, managed code ...
Applications interact with the outside world. mmm? Mashups and such. ok Many types of outside data.... Images RSS Business services Intranet services Mashup API's silverlight1.1 xaml and fun -no easy way to connect to other services. What does client code look like? Custom services. Recommended uses of services in silverlight Using silverlight front end connecting to webservice or database directly. Using C# void list<product>getproducts (string searchstring) Create service Define What does ...
So I have extra batteries on hand. Ready for the love of Silverlight2. Getting Video and trying to encode as fast as I can for the streaming. Woooh! Mix08. See the twitter feed for instant updates. www.twitter.com/mikedopp. Ray Ozzie Main points in keynote:Content, Commerce, Community. Making cracks about the yahoo purchase or working on purchase. Media Zune, PC, Xbox360 working better together. Xbox360 might finally get a the web? Microsoft going google docs with word excel and such Office Live ...
Scott Guthrie: Silverlight 2 features: Cross browser cross platform version of .NET Multi language support WPF UI framework (as a subset). Use controls, layout management. Databinding support Skinning, styling Animation support Networking (REST, SOAP, etc...) Built in support for Sockets Integrated data support, including LINQ Local cache store High performance Small download, fast install(4.3 MB download all inclusive) Linux implementation of SL2 available. Includes Calendar control, Datagrid control... ...
Ray Ozzie keynote: "Many amazing technologies available today, but I would like you to bet on us" Oh really? Scott Guthrie keynote: Just launched .NET 3,5, VS2008, IIS7, Windows Server 2008 Scott talks about the new features in ASP.NET 3.5, mentions LINQ IIS7 makes deployment and administration much better Dean Hachamovitch (IE General Manager) Introduces IE8 Cool T-shirt #Mix08 ...

Spring is almost here, and with it comes the Twin Cities Code Camp! This time around there's another group of very talented speakers covering topics from MVC, Ruby, F#, LINQ, game programming, Silverlight, and Rocky will be out talking up CSLA .NET 3.5, among other great presentations!

Check out the official schedule here!

D

I cannot believe that I became a blogger on my 30th birthday. The fact is I never wanted to be a blogger, at least not a blogger on .NET programming, which I do everyday at work and at home. But I guess I was totally convinced to start blogging by Andrew Siemer, who has a .NET development/architecture blog on GeeksWithBlogs and a whole bunch of other stuff going on in the .NET community, and who happens to be working on the same projects with me at work. Well I have to say that the main reason why ...
I was given a wonderful opportunity to make an appearance on DotNetRocks TV (dnrTV) last week. I'll use Carl Franklin's words to describe my appearance: "Jim Duffy comes to the dnrTV screen this week with a great presentation using Microsoft's Virtual Earth in ASP .NET. Jim shows you how to incorporate live maps in your applications complete with push pins, lines, shapes, links and more." While it doesn't say it specifically, I also covered how to import GeoRSS data feeds into Virtual Earth providing ...
I'm working late on a project tonight where I'm implementing a MVC pattern into a non-MVC ASP.NET application. The original application was done in .NET 1.1 and relied heavily on a dataset for accessing the database. A thought occurred to me... Are datasets bound for extinction? Think about it... .NET 1 and 1.1 .NET is released upon the world, and the biggest shift in Microsoft development begins. There are a *tonne* of VB 6.0 devs who are chomping at the bit to try the new fully OO language features, ...
When we first started the new project there was no question that it would be ASP.NET. It's what I knew and I trusted it to get us there. I wasn't going to risk a startup by playing with Ruby on Rails or PHP when I knew very little about it. I also went directly to SQL Server for the same reasons. But during the first weeks of development we needed to run MySQL to power some software we thought for sure we were going to need to run. That threw a wrench in the plans. Did we really want to run two database ...
So, I learned something new yesterday. I haven't spent a lot of time in ASPX over the last couple of years, and when I did I didn't really pay attention to what is new. Well, I learned about the nifty DataSourceControl classes. In my case, I decided to use the LinqDataSource control. And I put it to use on a nested GridView with Paging I struggled for more hours than I care to admit to accomplish what I wanted. In the end, I was pleased at just how little code was required. Check out my full article ...
One of my colleagues Mehfuz Hossain developed a wonderful open source project which allows you to query Flickr photos by LINQ, also lets you insert, delete photos directly to/from Flickr. You wonder how to extend LINQ in such an amazing way? It’s easy by writing your own custom LINQ provider, which was not-so-easy until he came up with another handy open source project named LINQ Extender. He did all the expression parsing stuff to ease our pain. Now you can make your own LINQ to Anything using this ...
What do these all have in common? On Wednesday, David Treadwell posted to the Windows Live blog, giving a sneak peek into what you can expect to hear more about next week Mix08. "At MIX we are enabling several new Live services with AtomPub endpoints which enable any HTTP-aware application to easily consume Atom feeds of photos and for unstructured application storage (see below for more details). Or you can use any Atom-aware public tools or libraries, such as .NET WCF Syndication to read or write ...
Several months ago I learned how to use LogParser. I put away my normal responsibilities for part of a day and focused on that neat little tool. Check my previous posts if you want to learn more about that experience. Last week I wanted to know exactly what I'd need to do to move some of my web services to WCF. So, I pushed aside my duties, turned off Outlook, and spent the day delving into WCF. I don't think I have to tell you how sweet that day was! Today I went to launch DBArtisan and a feeling ...
In LINQ to SQL, the data model of a relational database is mapped to an object model expressed in the programming language of the developer. When the application runs, LINQ to SQL translates into SQL the language-integrated queries in the object model and sends them to the database for execution. When the database returns the results, LINQ to SQL translates them back to objects that you can work with in your own programming language. You may want to make a data access layer that separates the data ...
The new edition of the Wrox ASP.NET book is officially on the shelves today! Amazon received their shipment and it is now in stock for a CHEAP $34.64. My co-authors, Scott Hanselman and Devin Rader, revamped this book and added quite a number of new pages to deal with the new features from AJAX to IIS 7 to LINQ to this book. We really focused on helping the ASP.NET developer understand the tools, APIs, controls, and environments at their disposal for this release. ASP.NET is, in my humble opinion, ...
While playing with Linq and trying to get it to work with Oracle (Linq to Oracle *sigh*), I struggled with the fact that Linq appears to tightly couple business objects with data/persistence. I found myself pondering this fact and trying different approaches to separate the ObjectContext from EntityContext(s). In Linq, the ObjectContext is the object that you provide with a connection string and has the knowledge to send/receive data to/from your database. The EntityContext(s) are the classes that ...
Well, I have been playing with Linq, specifically with Oracle. First of all, the only way I could find to make this work is to use a third party software, OraDirect.Net by Core Lab. Their product is great. Perhaps that statement is biased by the fact that they are the only one's building a library to support Linq to Sql (as far as I know). There is certainly room for improvement. I've crashed VS a few times because I was trying to force OraDirect to do something it doesn't support. So, error handling ...
26 developers from 'West-Vlaanderen' interested in LINQ and the Entity Framework attended (and liked) my IT Club session yesterday. This session will be repeated for Ordina and some local .NET usergroups. I this session i give an introduction to LINQ and the needed C# languages enhancements, focus on OR-mapping and contains demos on Linq to SQL and the Entity Framework. Interested in attending, please mail me or reply to this post. Or you can download the slides here ...
Some time ago I wrote a post in which I talk about how you can do unit tests over your text templates using the GAX Host. In that example I used a very simple template which receives just a couple of string properties. But it becomes more complicated when you have properties which are complex types ok I know, most probably you're thinking that can resolve that just creating your own mock objects and you're right. But the thing is that you can do that in a really easiest way using a mock framework. ...
Serious VB Booklist Looking for VB.NET books that don't insult your intelligence? Tired of "Hello World" examples? Ready to get your hands dirty with some hardcore programming? Look no further than this list of serious VB.NET titles: Expert VB 2005 Business Objects - Rocky Lhotka Doing Objects in Visual Basic 2005 - Deborah Kurata LINQ in Action - Fabrice Marquerie, Steve Eichert, Jim Wooley (VB Samples) The Rational Guide to SQL Server CLR Integration - Greg Low Hitchhikers Guide to Visual Studio ...
I was recently introduced to a UK based publisher called Pact Publishing. They are a UK based publisher and have a book focused on the new Language Integrated Query (LINQ) features available in .NET 3.5 called LINQ Quickly: A practical guide to programming Language Integrated Query with C# by N Satheesh Kumar. The book provides a good overview of LINQ and it's supporting language features, such as anonymous types, implicit typing, object initializers, extension methods, and expressions. It then builds ...
Do you ever feel like there's just too much stuff to learn and not enough time in the day to learn it? I mean seriously...I've got the following things on my plate at the moment: VB.NET 2008 (as in exploring the new language features more in depth)MVCMore AJAX StuffLINQ (to Objects, to SQL)Entity FrameworkWCFWPFBiz TalkMobile Development using Mobile 6 and VS.NET 2008NHibernateSubversion and GitCastle Windsor[Edit]NDependNUnit [/Edit]... A co-worker made an interesting comment today that I think ...
Another great meeting!!! Tonight I walked in with Bill; I got to help push the mounds of food and drinks in. As usual the meeting was held at the Microsoft Malvern campus. The meeting started with Dani Diaz our local MS rep. His course was named VS c# Tips and Tricks for the MS Visual Studio 2008 IDE. Dani started out with showing us around VS 2008, key commands, explaining the versioning and how it works, etc. Some of the key commands that he showed were pretty cool, ones I never saw before. Then ...
I came across a need the other day to recurse the page control tree (or any control tree really) to find all controls of a certain type, so this is the extension method I wrote to help me do that. Hopefully it will help others as well. /// <summary> /// Recurses the control tree and finds all controls in the control collection that are of the specified type. /// </summary> /// <typeparam name="T">The type of control you want to find</typeparam> /// <param name="controls">The ...
This Thursday I'll be giving on presentation on LINQ to SQL at the CMAP Developer group: http://cmap-online.org/Meetings/Details/2008-02-21.aspx
Note this article is primarily based on Microsoft/.Net technologies, although the principle apply to any technology. Before development of any reasonable business software project begins the following areas need to be nailed down: Application Architecture (application structure) ORM (Object/Relational Mapping - data source access and translation to/from business objects) Base framework (system framework, helper classes, base classes, etc) UI. There are many tools available that will dictate or guide ...
A recent announcement was made on the altdotnet mailing list that made me jump for joy today. Ilya Ryzhenkov and the great folks at JetBrains have published the nightly builds for Resharper 4.0. The download for this can be found here and you might want to read the release notes here. It's important to note that the LINQ syntax is still not supported yet. As with any product in nightly builds, please use with caution, but download it and play with it today ...