Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2007

Tip: Looking for answers? Try searching our database.

Looking for LINQ to SQL N-Tier example

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
groknroll - 09 Oct 2007 16:17 GMT
I'm looking for an example / guidelines for leveraging LINQ to SQL in an
N-Tier environment.  Specifically I'm looking for an example where there is a
presentation layer, an application layer, and a database.  There are plenty
of examples showing how to create LINQ objects and then connect them as
datasources directly to web controls that consume datasources.  I"m looking
for a way to create the LINQ objects on the application server and then
propagate them to the web server to have them consumed as datasources there.

Any help is appreciated,
Thanks.
James Crosswell - 09 Oct 2007 16:52 GMT
> I'm looking for an example / guidelines for leveraging LINQ to SQL in an
> N-Tier environment.  Specifically I'm looking for an example where there is a
[quoted text clipped - 3 lines]
> for a way to create the LINQ objects on the application server and then
> propagate them to the web server to have them consumed as datasources there.

If you've already got your linq objects, with all their properties set,
then you just need to return these objects to the client (using Remoting
or WCF or whatever). So you just take the linq examples you already have
an use them in the application server in the methods that are used to
fetch/update/insert/delete the persistent instances of these objects in
the underlying datasource (MSSQL Server).... what goes on between the
client and server has nothing to do with linq though, so the fact that
you're programming n-tier really doesn't matter.

Best Regards,

James Crosswell
Microforge.net LLC
http://www.microforge.net
groknroll - 11 Oct 2007 14:01 GMT
Thank you... that makes sense.

> > I'm looking for an example / guidelines for leveraging LINQ to SQL in an
> > N-Tier environment.  Specifically I'm looking for an example where there is a
[quoted text clipped - 18 lines]
> Microforge.net LLC
> http://www.microforge.net
Michael Nemtsev, MVP - 09 Oct 2007 23:00 GMT
Hello groknroll,

I recommend you to look at any 3 tier application sample, like there http://www.15seconds.com/issue/011023.htm

and start thinking about the LINQ from "data layer" like LINQ to SQL - it's
simplies way to get tuned to LINQ

after that u will understand where and how apply LINQ to other collections

---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour 

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

g> I'm looking for an example / guidelines for leveraging LINQ to SQL in
g> an N-Tier environment.  Specifically I'm looking for an example where
g> there is a presentation layer, an application layer, and a database.
g> There are plenty of examples showing how to create LINQ objects and
g> then connect them as datasources directly to web controls that
g> consume datasources.  I"m looking for a way to create the LINQ
g> objects on the application server and then propagate them to the web
g> server to have them consumed as datasources there.
g>
g> Any help is appreciated,
g> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.