Geeks With Blogs
Billy McCafferty whatever (but really just .NET) ASP.NET
Ruby-on-Rails Capabilities in ASP.NET
It's great to see that ASP.NET tools are finally surfacing that leverage the same code-generation capabilities as Ruby-on-Rails. ASP.NET ActionPack (http://www.codeplex.com/Wi... is one such example that builds data-access and presentation scaffolding. Like RoR, ASP.NET ActionPack will automatically build admin screens for all your basic CRUD fuctionality; unlike RoR, ASP.NET ActionPack will even look for foreign keys within your DB schema and provide drop-down options ......

Posted On Monday, August 28, 2006 1:16 PM

Using NHibernate with Multiple Databases
I've added a new article to CodeProject.com concerning NHibernate with multiple databases with either ASP.NET or .NET. The article can be found at http://www.codeproject.com/... Any and all feedback is certainly welcome. As an addendum, Hector Cruz has described an approach to connecting to multiple DBs on the same server via NHibernate HBM files at http://forum.hibernate.org/... Billy ......

Posted On Monday, July 17, 2006 8:34 PM

Model-View-Presenter with ASP.NET: An (almost) exhaustive examination
I've been working on an article for the past few weeks concerning the usage of the Model-View-Presenter pattern with ASP.NET. The article has been completed and uploaded to http://www.codeproject.com/... I hope you find this article useful. Please feel free to raise your questions and/or concerns. Billy ......

Posted On Sunday, July 2, 2006 8:22 PM

Using NUnitAsp to test a secure webpage
NUnitAsp is a great tool for unit testing ASP.NET web pages. Although NUnitAsp tests are slow to run, they're especially useful for running “web smoke tests” on a nightly basis. (I mark every NUnitAsp class with [Category("Web Smoke Tests")] so that I can easily exclude them from my more frequent unit testing.) On many projects, authentication is required to view a webpage. When testing an application requiring Windows authentication, NUnitAsp can be easily configured to run as the current ......

Posted On Wednesday, May 10, 2006 7:48 AM

ReSharper 2.0 Beta Now Available!
After using it for a couple of hours it looks stable and ready for use. Needless to say, it's nice to have it back in VS 2005 since the out-of-the-box refactoring support freezes the IDE 1/2 the time and takes at least a minute to complete the other 1/2 of the time. (I can finally get rid of all those extra C# using statements just taking up space!) When you install ReSharper 2.0, it forces you to install to VS 2005 hotfixes. I'm not sure what happened after installing these hotfixes, but my ASP.NET ......

Posted On Tuesday, April 25, 2006 8:21 AM

Journeys with Model-View-Presenter and ASP.NET
On a previous post, I mentioned my introduction to Model-View-Presenter (MVP). I've now gotten a chance to try it out on a new project and have been very pleased with the results thus far. MVP provides an approach for clean separation of concerns within the ASP.NET presentation layer without dismissing the page event model. MVP sees the code-behind, along with the ASPX page, as strictly part of the view and provides a patter to treat it accordingly. Although the pattern itself is easy to understand ......

Posted On Thursday, March 30, 2006 1:59 PM

The solution for proper ASP.NET MVC
Arguments abound for whether or not ASP.NET provides adequate MVC. On the other hand, many feel Page Controller and Front Controller are the way to go. Others feel the entire page model should be abandoned in the favor of something more attuned to Ruby on Rails such as Castle MonoRail. For me, I've always liked the page event model and feel user and server controls are wonderful, but have struggled with making the code behind strictly part of the view. I believe Model-View-Presenter is the answer. ......

Posted On Wednesday, March 15, 2006 2:58 PM

NHibernate Best Practices with ASP.NET, Generics & Unit Tests
I finally got around to it... the whole shebang of NHibernate best practices with ASP.NET and Generics. The article, along with the related source, can be found at http://www.codeproject.com/... Your review, feedback and suggestions would be much appreciated! 3/3/06 UPDATE I've updated the article on Code Project to include a unit testing project to show how to simulate the web context and how to create “mock” DAO objects within your unit tests ......

Posted On Saturday, March 11, 2006 10:22 PM

Giving NHibernate a serious performance boost
When NHibernate prepares SQL queries for SQL Server, it passes them to sp_execsql. Upon first call, the query speed is lackluster as it parses and executes the SQL; on subsequent calls with the same query syntax, the speed gets a bit faster. But even on subsequent calls, the response time is much slower than that of a stored procedure. The problem is, by default, NHibernate does not fully qualify table names within its queries sent to SQL Server. To leverage sp_execsql to its fullest, requests must ......

Posted On Wednesday, March 8, 2006 10:46 AM

Un-hiding web control declarations in ASP.NET 2.0 code-behind files
ASP.NET has an “interesting” way of encapsulating web control declarations within the code-behind of an ASPX page. Instead of forcing you (or “allowing you,” based on your perspective) to explicitly declare web controls via protected members in your code behind page, ASP.NET 2.0 automatically associates a hidden partial class with your code-behind that contains the explicit declarations. I appreciate the intention, but I find that the implementation makes the code-behind less ......

Posted On Monday, February 27, 2006 7:31 AM

Copyright © Billy McCafferty | Powered by: GeeksWithBlogs.net | Join free