.Net
.Net related articles
In my previous post, I mentioned the creation of a home automation application using LightSpeed 3.0 and ASP.Net. In this post, I’m going to start with an explanation of basic project setup. In the posts that follow, I’ll elaborate on the development of individual areas of the application.
Initial Solution Structure
The initial solution contains the following projects:
Domain – Includes the core domain model as well as the interfaces that may be used to operate on the model. Most of these interfaces will be implemented by the AppServices, DataAccess, and DomainServices libraries.
AppServices...
I’ve been thinking about putting together a physical training application for a while. I do a lot of running and working out, but I think I may have stress-fractured my foot a couple of weeks ago. So no better time than the present to work on something to help me in the future. I know there are a lot of training apps and running apps out there, but I thought I’d take a shot a writing one.
Hmm, I've made a change of decision on this one. A while back, a couple of friends and I were talking about a...
I’ve been a fan of Mindscape’s LightSpeed ORM for a while. I think that it’s a great alternative to LINQ to SQL (L2S) and NHibernate (NHib). I work in a shop where we use both NHibernate and L2S very heavily and I have great respect for both of these products, but I’d really like to attempt some real work projects with LightSpeed. Up to this point, I’ve used it to put together my own prototypes, which typically get moved to a different technology when I apply these technologies in the work environment. I plan on following up with some articles...
Looks like Resharper 4.5 is out the door. The big initiative this time seems to have been performance. I have to admin, sometimes 4.x seemed to take forever to load on large projects. I’ve been using the beta for a little bit, and it definitely seems like the project load times are shorter. I like the solution-wide code inspection as well. That’s been on my wishlist for a while.
Technorati Tags: Resharper,.Net
A complete sample code project for this article is available here. In a previous post, I had proposed an idea on how to control the lifetime of the DataContext in LINQ to SQL (L2S). I basically created a provider class that would detect the presence of an HttpContext. If the context was present, it would use the HttpContext and store the DataContext on a per-request scope. Otherwise, it would store the DataContext in the CallContext, basically creating a per-thread scope for the DataContext. I actually felt a little dirty after having done this, but for some reason...
I’ve significantly altered the approach presented below in the following post. However, the post below may still be helpful for further reference. So I’ve been a user of NHibernate for a while on my main project at work. I got a change to refactor some services related to the application, and decided to use LINQ to SQL as the ORM, mainly so I could do a little more LINQ and check out the features of LINQ to SQL in a little more detail. One issue that seems to keep coming up among users is the lifetime of a DataContext. ...
My favorite new ORM, MindScape's LightSpeed, has released their 2.1 version. I love this little ORM. It's fun and friendly to use like Linq 2 SQL, but has a ton of little productivity enhancements that make rapid developers happy. Some of the things I like about this ORM:
Designer Support - Nice little designer much like Linq 2 SQL. I can go without a designer, and I do quite often with NHibernate, but it's so nice when explaining things to other visual people to just pull up the designer and say "look...right here!".
Linq...
I was recently setting up a SQL membership provider with ASP.Net, and was curious as to how the User ID's were being generated. Typically if a database table is going to have a large number of rows, you don't want to use NewID() to populate a GUID (aka UniqueIdentifier) primary key. The problem is noted in the much-referenced article by Jimmy Nilsson where he basically came up with the GUID.Comb to address this. This is now used by NHibernate to solve the issue of inefficiency of SQL Server GUID PK operations.
SQL Server 2005 attempts to address this issue through...
Little late on the bandwagon here, but Ray Houston pointed me to Windows Live Writer with the paste from Visual Studio plug-in. Should make code blogging a lot easier! Technorati Tags: .Net,Blog
Previously in this series:
WhoDaBest - Post 1, WhoDaBest - Post 2, WhoDaBest - Post 3
OK, so I've already realized there is a problem with my base repository class. I was getting ready to create my first domain entity, which will be a "Role" class, and it's associated concrete repository and I realized that with the way it is set up, if I just extend the base repository, there is no way of doing any kind of unit tests without putting together some kind of test database and this just won't do. I don't want the overhead, especially since I don't...
Full .Net Archive