Building CLR/H Registration Site withASP.NET MVC4 and EF4.1 Code First
Requirements of registration site.• Attendees can do registration from Web. – Entry name, e-mail, twitter id ...• Share attendees list only within CLR/H staffs. – The list is used by staff at reception.
Today’s key words ASP.NET MVC4 Visual StudioWeb Pages View 11 Beta “Razor” Syntax ASP.NET AppHarbor Web API NuGet Git Entity Framework 4.1 Code First Twitter Bootstrap SQL Server 2012 LocalDB
Why AppHarbor?• The most reason is... I interested in it! :)• Second reason, it is low cost at start up. – Form $0 for ASP.NET Web Site hosting. – From $0 fot Rent SQL Server (20MB limited).
Notice• You must store the all NuGet packages which installed into Git repository. – I tried “NuGet Package Restore” feature, but it didn’t work.• EF4CodeFirst “DropDatabase” initializer doesn’t work. – Because the database is not mine. It is only rental. So, we can not drop it. – You must use “CreateTablesOnly” initializer. (install from NuGet.)
I think, it is not Best solution...• There is no function to manage user account s, yet... – We can configure HTTP Auth Module to use MembershipProvider, but...• Excel Web Query is Very convenient, but it is not full automatic. – We have to sync manualy.
Using Google Spread as a Database• Install “GDataDB” from NuGet!• Then, you can use Google Spread Sheet as a Database. – Spread Sheet Documents = Databases – Work Sheets = Tables – Rows = Entities – Columns = Properties of Entity – Column name mapped to property name.
• VS11 is very powerfull, and EF41CodeFirst allows you to develop rapidly!• You can get anything you want from NuGet! – Many many usefull libraries, modulues... – Many many nice girl friends...• Excel Web Query is nice feature! – Keep the way to HTTP standard.• You can publish your Web apps without cost by AppHarbor! – With SQL Server, not only Web app hosting!