Strangely, most of Entity Framework examples are for just one table. In real world, it is very rare, unless you use some document database. Often you get a result set from a database which joins two or three tables. There is one example of how to use navigation property. http://msdn.microsoft.com/en-us/library/bb896321.aspx I tried it, and thanks [...]
Archive for the ‘Programming’ Category
Pulling records from a referenced table using Entity Framework
Posted in Programming, tagged Entity Framework on August 9, 2010 | Leave a Comment »
Using NHibernate, Sqlite in your ASP.Net MVC project
Posted in Programming, Uncategorized, tagged MS Test, NHibernate on April 29, 2010 | 4 Comments »
I used Entity Framework for my personal projects for a while but wanted to try NHibernate. Instead of NUnit, I tried MS Test this time. First problem was that MS Test fails, complaining that hibernate.cfg.xml does not exist. It did not copy the file to MS Test out directory. Of course, I set “Copy to [...]
Deploying Sqlite together with ASP.Net MVC and Entity Framework
Posted in Programming, tagged sqlite on April 26, 2010 | Leave a Comment »
Of course, you need to install sqlite or deploy the dll together. Yet I keep forgetting that I need to register “.Net Framework Data Provider for Sqlite” You don’t need it on your dev machine, as Sqlite installation register it with your version of .Net machine.config. If you not register it, you will have an [...]
To get started with ASP.Net MVC 2
Posted in Programming, tagged ASP.Net MVC on April 3, 2010 | Leave a Comment »
I work on a few personal projects. Personal projects are fun, because you can choose which technology and tools you are going to use and often you can experiment with the latest fancy things. I once used ASP.Net MVC for my toast manager and became a fan of ASP.NET MVC. Also, my experience with ASP.Net [...]
lots of microsoft windows communication foundation webcasts
Posted in Programming, tagged WCF on November 11, 2009 | Leave a Comment »
http://www.dasblonde.net/2007/06/24/WCFWebcastSeries.aspx http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/362aaaf6-8eda-4fff-8e4c-8198e3f327f
Use Sqlite together wtih ASP.Net MVC
Posted in Programming, tagged ASP.Net MVC on October 20, 2009 | 2 Comments »
Visual Studio 2008 integrates Sql server 2008 express nicely into App_Data folder. You just create the database using Server Explorer, and it inserts the connection string into web.config for you. I used it when I worked on my toy project – ToastManager. I finished coding and testing on my machine and deployed it to an [...]
google’s canonical link
Posted in Programming on September 22, 2009 | Leave a Comment »
You can come to a same page with the same or similar content with many different urls. Query strings may have user id, session id, and many more. All these varied urls work unfavourably toward SEO. It will be best to clean up your urls, but there is a easy and quick way to get [...]
Display Selected value with Html.DropDownList in ASP.Net MVC
Posted in Programming, tagged ASP.Net MVC on September 21, 2009 | 2 Comments »
I wrote ToastManager about two months ago, and not try to covert it into ASP.Net. What ToastManager does is to collect people’s toast order for the morning toast run. Why? I just think MVC is cool. It separate programming logic into 3 different layers nicely. The first problem I encountered in writing MVC code was [...]
File is rejected by a third-party system, when it is utf-8 encoded with BOM
Posted in Programming, tagged c#, DreamMail, StreamWriter on May 28, 2009 | Leave a Comment »
Recently, I had a chance to refactor codes for a system that sends a file to DreamMail. Because we did not touch any FTP functionality, we were complacent and tested it up to where files are exported and sent via FTP. Development is completed and the application was deployed to a testing environment. Very thankfully [...]
How to use html test suite and cases on Selenium RC
Posted in Programming, tagged selenium, testing on April 9, 2009 | 15 Comments »
References How to install and use Selenium RC http://www.jroller.com/selenium/ Very good and complete article on introduction. Selenium Core FAQ Selenium RC FAQ http://seleniumhq.org/projects/remote-control/languages/selenese.html Since 2009, I have used Selenium IDE and core. I love Selenium IDE. It is easy to use and is very handy as I can record test cases and also run them [...]