Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:710863
More Search Options
RSS Available
Matching Posts
Re: Best practise for storing DataContext object for use by a static provider
Thanks Mr Gooding. Yup, I'm quite aware of how to use locks, or at least I think so. A static lock object could be provided by the same static class that provides the static datacontext object, and would have to be used by all methods that access the datacontext object.That means that every method in the static MyMembershipProvider would have to use the lock, and if I were to use the datacontext object down in my pagelevel code, then that code would have to "know" to use the lock object
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
bboyle1234
on 8/17/2009
Re: Best practise for storing DataContext object for use by a static provider
Here's a good discussion of the problem, which has a lot of feedback with links from community: http://blog.codeville.net/2007/11/29/linq-to-sql-the-multi-tier-story/
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
bboyle1234
on 8/17/2009
Re: Best practise for storing DataContext object for use by a static provider
Hi Mr Gooding, just to let you know I edited the above post so it sounds politer (don't want to let any carelessly-written sentences send the wrong message). Looked at your new blog. Keep up the good work :)
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
bboyle1234
on 8/17/2009
Re: Best practise for storing DataContext object for use by a static provider
Here is another more thorough solution to the problem: http://www.ericswann.org/blog/archive/2009/04/06/linq-to-sql-datacontext-provider-revisited.aspx But I don't need the datacontext to be available when HttpContext.Current is null, since I am not upgrading the project to winforms, or running test solutions that don't use it. My project doesn't need to worry about the LoadOptions problems mentioned in http://blog.codeville.net/2007/11/29/linq-to-sql-the-multi-tier-story/ And finally
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
bboyle1234
on 8/17/2009
Best practise for storing DataContext object for use by a static provider
Dear readers, My application uses a static custom membership provider for storing user login identity and information. It uses a LinqToSql object for accessing the MSSQL database. My questions are regarding best practises for instantiating and storing the datacontext object. How and when should it be created? Should the static membership provider have its own datacontext object, or should each static function require a data context as a parameter? There are many possible solutions. My first implementation
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
bboyle1234
on 8/16/2009
Re: Keeping a long-running thread alive longer
oh, I should mention: The threads belong to a custom threadpool which has been declared using the "static" keyword, so the threadpool is NOT destroyed with the pagehandler exits.
Posted to
Architecture
(Forum)
by
bboyle1234
on 7/27/2009
Keeping a long-running thread alive longer
Hi, My application needs to do some lengthy data-update processes at a certain time each day. So I have setup a CRON job on a linux box to call the DataUpdate.aspx page on my website every day at 5pm. It "pokes" the page every five minutes for a couple of hours to make sure the data update gets finished. What usually happens is this: Page is poked from the cron job --> Page sets up some long-running background threads, sends a status message to response and exits --> Background threads
Posted to
Architecture
(Forum)
by
bboyle1234
on 7/26/2009
Using IIS7 on the development machine
Hi, My development machine: Windows XP Home with Visual Studio 2008, Version 9.0.30729.1 SP This week have purchased and setup hosting from mochahost.com. Moving my website from the old hosting to the new, I noticed that the httpHanders defined in web.config had stopped working. In their place, I was getting a 404 (not found) error. After some searching on the net I realised that mochahost was using IIS7 and I had to move my httphandlers from the <system.web><httpHandlers> tag for IIS6
Posted to
Free For All
(Forum)
by
bboyle1234
on 6/26/2009
Re: Using IIS7 on the development machine
Ah thanks Jeff, That would explain the precondition="integratedMode" attributes I see in the handlers defined in the <system.webserver><httpHandlers> section of web.config. I think, since I'm using a shared server, it would be impossible to tell IIS to run in the classic pipeline. But I appreciate the knowledge, and I will put up with the differences until Windows 7 is released... Vista ... ewww.
Posted to
Free For All
(Forum)
by
bboyle1234
on 6/26/2009
Re: Alternative to the Aggregate() function when sending a linq query to a database
Hi Paul, Thank you. Its not too late to normalize. By normalize, did you mean, make the table look like this? Id Values 1 a 1 b 1 c 1 d 2 c 2 d 2 e There is one reason I decided against doing this is the first place. The key, which I conveniently represented here as a single int field, is actually made up of a couple of columns. I didn't want to have those key columns into another table, and then use a foreign key to link them to the values in yet another table, as I figured it would be a heavy
Posted to
C#
(Forum)
by
bboyle1234
on 6/4/2009
Page 1 of 10 (100 items) 1
2
3
4
5
Next >
...
Last »
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Silverlight:
Silverlight HVP Design Update
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online