.Net

There are 13 entries for the tag .Net
LightSpeed 3.0 App – Part 1 – Project Setup

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...

posted @ Monday, December 14, 2009 9:38 PM | Feedback (1)

LightSpeed 3.0 App, Introduction

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...

posted @ Sunday, December 13, 2009 10:41 PM | Feedback (4)

Mindscape LightSpeed 3.0 – Advocating a Commercial ORM

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...

posted @ Sunday, December 13, 2009 2:53 PM | Feedback (11)

Resharper 4.5

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

posted @ Wednesday, April 08, 2009 10:23 PM | Feedback (0)

LINQ to SQL DataContext Provider Revisited

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...

posted @ Monday, April 06, 2009 10:44 PM | Feedback (1)

LINQ to SQL DataContext Provider

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. ...

posted @ Monday, March 16, 2009 10:56 PM | Feedback (1)

Mindscape LightSpeed 2.1

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...

posted @ Saturday, October 18, 2008 9:52 AM | Feedback (0)

WhoDaBest - Post 5 - IOC Setup

Previously in this series: WhoDaBest - Post 1, WhoDaBest - Post 2, WhoDaBest - Post 3, WhoDaBest - Post 4 I think I've been spending more time running and working out than doing dev lately.  I made an attempt to get refocused for a bit today and accomplished a few things.  First of all, I just don't like the term "Foundation", so I renamed my WhoDaBest.Foundation project to WhoDaBest.Commons.  I was also trying to think of the best way to set up my IOC container today, for which I have chosen Castle Windsor.  It...

posted @ Monday, January 21, 2008 10:13 PM | Feedback (0)

Windows Live Writer

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

posted @ Saturday, January 12, 2008 11:12 AM | Feedback (1)

WhoDaBest - Post 4 - ActiveRecord Revised

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...

posted @ Friday, January 11, 2008 9:27 PM | Feedback (0)

WhoDaBest - Post 3 - ActiveRecord

Previously in this series: WhoDaBest - Post 1 WhoDaBest - Post 2 So I've made a couple of decisions.  The first is that I'm going with tools from CastleProject.org for my object-relational mapping (ORM) and for my inversion of control (IOC).  I'll talk about IOC later, but first I want to focus on ORM.  Castle's ActiveRecord is open source and sits on top of NHibernate.  I've used NHib by itself, and it's a great tool, but there are a number of nice little features that Castle ActiveRecord gives you that I like a lot, such as transaction management, mapping attributes (so no hibernate mapping xml files),...

posted @ Friday, January 11, 2008 2:03 PM | Feedback (0)

WhoDaBest - Post 2 - Initial App Setup

Previously in this series: WhoDaBest - Post 1 So I've done some initial infrastructure for WhoDaBest.com.  What is "WhoDaBest"?  You'll just have to wait and see as it develops.  Subversion Setup The first step was to set up version control for which I'm using Subversion.  I've got an old desktop in the other room which has become my Subversion server.  Amazing how easy it was to set this up.  I've been a user of Visual SVN for a little while now, and I noticed a while back that they had put together a Visual SVN server.  This installer pretty much makes it idiot proof...

posted @ Thursday, January 10, 2008 10:38 PM | Feedback (0)

New .Net Project - WhoDaBest - Post 1

So I'm going to be creating a new .Net project from the ground up.  Typically I inherit projects from others so I don't get to build things the way I'd like from the ground up.  What I want to try to incorporate are the following technologies: NHibernate / Castle ActiveRecord - Probably NHibernate via active record.  I will use the Active Record Mediator instead of inheriting Castle Windsor - For dependency injection. TDD - Try to actually write tests with the code, optimally before the code.  Probably NUnit here....

posted @ Wednesday, January 09, 2008 10:45 PM | Feedback (2)