Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 6th, 2009, 06:22 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default Interesting LINQ article

Hi all,

Just came across this little article on the codeproject that really is short and sweet at describing LINQ (not L2S) in a 3 tier scenario.

Worth a peek...

http://www.codeproject.com/KB/aspnet/SaltAndPepper.aspx

enjoy!!
__________________
jimi

http://www.originaltalent.com
 
Old March 6th, 2009, 02:49 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

This is really nothing more than LINQ to SQL, except he's creating the entities by hand instead of using the designer. Nothing wrong with that if you don't mind all the extra work.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old March 6th, 2009, 04:30 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

Quote:
Originally Posted by Lee Dumond View Post
This is really nothing more than LINQ to SQL, except he's creating the entities by hand instead of using the designer. Nothing wrong with that if you don't mind all the extra work.
hi lee - thanks for the 'nod' on the book thread

i think my *interest* here was the fact that you could template build the entities *by hand* and get all the linqie goodness without having all the contraints that the designer places on the BDAL (linq bll/dal).

but as you say, it's just hand rolled l2s - but quite simple and certainly gave me an insight into how you could use a very lightweight linq dal merely by adding some *decoration* to the DAL entities.

further thoughts welcome...
__________________
jimi

http://www.originaltalent.com
 
Old March 6th, 2009, 04:44 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Offhand, I can't think of any serious restrictions placed by the designer, other than the datacontext and entities being munged into the same physical file, though in practice that shouldn't make any real difference.

You'll also be lacking the ability to respond to events that the designer automatically creates, though I can't think of many cases where I've done this anyway.

Decorating the entities by hand does allow you to implement only the functionality you need, which for a template-based scenario might be a good thing.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}





Similar Threads
Thread Thread Starter Forum Replies Last Post
An interesting question iPagan BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 February 13th, 2007 05:31 PM
Interesting Problem prasanta2expert ASP.NET 1.0 and 1.1 Basics 1 October 16th, 2006 08:14 PM
Error in BLL.Article.Article.cs drohm BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 August 14th, 2006 09:56 AM
Interesting validation problem jacob ASP.NET 1.0 and 1.1 Professional 5 February 16th, 2006 07:16 PM
Interesting Error kanchan_b XSLT 1 February 1st, 2006 03:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.