Showing posts with label MVC. Show all posts
Showing posts with label MVC. Show all posts

Thursday, November 29, 2012

Simple Student Information System using ASP.NET MVC4 (w/ C#)

I created a practice project where I use my new knowledge on Entity Framework Code First, the Repository and Unit of Work patterns with ASP.NET MVC4 and Unit Testing including mocking with Moq.

I published it on GitHub.
(Not yet finished)(I think I am finished with the thing I wanted to practice on - using the Repository and Unit of Work patterns)

There are functionalities that are not yet implemented in this project:
1. Updating the list of Degrees
2. Updating the list of Subjects
3. Updating the list of Semesters, Periods and Levels
4. Roles and permissions - for now, anybody can register, login and update student records.
(also, Unit Testing is not yet completed)

I have to set aside this project for a while because there are other things I need to study.

If you are interested, you can view/download/fork it from here: https://github.com/jboyflaga/StudInfoSys.AspNetMvc4.git






Monday, May 21, 2012

ASP.NET MVC 3 (w/ C#): Student Information System


This is a simple Student Information System I created using ASP.NET MVC 3 and C#.

You can download the zip file here.


Because I'm new to ASP.NET MVC, I will list some interesting things for beginners that I used in this project:
  1. Adding attributes to entity classes generated by Entity Framework
  2. Creating AJAX search form
  3. Using Html.DropDownListFor() helper
  4. Using jQuery UI Datepicker

Tuesday, May 15, 2012

ASP.NET MVC ERROR: Store update, insert, or delete statement affected an unexpected number of rows (0).

Server Error in '/' Application. 

Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries.


Possible Problem:
You placed a ReadOnlyAttribute in you entity key's metadata, which causes its value to become zero

     [DisplayName("Student ID")]
     [ReadOnly(true)]
     public int StudentID { get; set; }


Solution:
Remove the ReadOnlyAttribute

     [DisplayName("Student ID")]
     public int StudentID { get; set; }


For other possible causes for this problem and possible solutions, please refer to this link http://stackoverflow.com/questions/1836173/entity-framework-store-update-insert-or-delete-statement-affected-an-unexpec



  
Free Lessons for Chruch Pianists:
Free lessons, tips and downloads for church pianists

DVD Courses (Reharmonization, Play by Ear!, Arranging, Accompanying, Theory for Church Pianists, etc.):
Over 30 hours of DVD instruction for church pianists
 


Visit Vitabase for Quality Health Supplements

Friday, April 6, 2012