CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

John Papa [MVP C#]

.NET Code Samples, Data Access, and Other Musings

Silverlight, WCF and LINQ to SQL

I've had some requests lately to write some articles that work with LINQ to SQL. I've ben focusing on the Entity Framework a lot due to its vast nature and that fact that its still relatively unknown to many people. So I am going to work on a LINQ to SQL project that ties into a multi tier model. I am also going to show how this can be hooked into a  Silverlight 2 UI that connects through WCF to the lower layers.

I'll probably be demonstrating these first at an event I am trying to set up with Joe Healy of Microsoft in Tampa this coming August. The demos will be ready way before then, but I wanted to have some cool materials for this event. There is no title nor date yet, but once the event is set I will be sure to let blog about it. It should be a great day overall.

I also plan on giving some love to the Entity Framework, regular persistence/mapper models, MVP patterns and more. I just have to find a way to work it all in and still give enough to each topic. Of course, this means all demos are subject to change, but the content will be fresh and cool for certain.

Here is a very poorly and quickly thrown together diagram of one of the demos I am tweaking.

image

Cross posted from johnpapa.net



Comments

Bryan Reynolds said:

Sounds like it will be a good example.  Thanks!

Could you throw in some validation logic?

# May 7, 2008 8:13 PM

Mark said:

Sounds great.

If I can make a small request I hope you will go beyond the bare basics which has already been done well several places and include some more real world issues e.g. extending the object model or hiding certain fields that are in the table object from the service. Also sending through child fields rather than just the FK etc. I would love to see some 'intermediate'  and Best Practice Silverlight App tutorials not just beginner.

# May 7, 2008 8:45 PM

John Papa said:

Good points, thanks.

Real world samples are always a tough balance, but I sooooo agree they are valuable and I try to strive for them. The difficulty is keeping them real yet keeping them simple enough so they are easy to see. Sometimes, IMO, presenters get hung up on showing so much of an applicaiton that it makes it tough on the audience to focus on so many aspects.

Anyway, yes, I working on some real world scenarios beyond the basic binding of a list of products to a grid.  To your exact points:

Q) Will I extend object model?

A) YES

Q) Hide fields ... aka return a projection or lesser object?

A) Not exactly. I usually choose to return the object and filter with LINQ.  But yeah, i will address it.

Q) Sending child fields and not just FK?

A) YES

Q) Will they be Best Practice Apps for Silverlight?

A) Yes, I believe so. While I will show some glam and sparkle in Silveright, I will also focus on showing how to accomplish solutions. To me that means showing a multi tiered app that does full CRUD, searching, filtering, extended controls, templates, WCF over a network, MVP patterns, Entity Framework, etc. While I may not show everything I want to (due to time), I will get to a lot. Intermediate is a good category.

# May 7, 2008 10:23 PM

Dew Drop - May 8, 2008 | Alvin Ashcraft's Morning Dew said:

Pingback from  Dew Drop - May 8, 2008 | Alvin Ashcraft's Morning Dew

# May 8, 2008 9:19 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About John Papa

John (C# MVP and MCSD.NET) has been working with Microsoft distributed architectures for over 10 years. He has enterprise experience architecting and developing with .NET technologies including ASP.NET as well as WebForms using both C# and VB.NET. He is a baseball fanatic who spends most of his summer nights rooting for the Yankees with his family and his faithful dog, Kadi. John has authored or co-authored several books on ADO, ADO.NET, XML, and SQL Server, is the author of the Data Points column in MSDN Magazine, has presented MSDN WebCasts and can often be found speaking at industry conferences such as VSLive and DevConnections. Check out Devlicio.us!