Web API With Angular JS

In this article we will learn about CRUD operations in Web API using Angular JS. We will use Visual Studio 2015 to create a Web API and performs the operations. In this project we are going to create adatabase and a table called tbl_Subcribers which actually contains a list of da

4.5 Star
4,373 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
  • DbEntityValidationException
    2 Posts | Last post August 07, 2017
    • Hello,
      I downloaded and ran this project in Visual Studio 2015, and I get the following exception in SubscriberController.cs, line 26, myEntity.SaveChanges():
      An exception of type 'System.Data.Entity.Validation.DbEntityValidationException' occurred in EntityFramework.dll but was not handled in user code
      Additional information: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.
      When I look at the local variable sub, I see that the propety MailID is null. 
      I also can nowhere find the database file.
      Can you please explain, what there is to do, to make this project run?
      Thank you in advance,
    • In SQL Script for creating table tbl_Subscribers
      Change :
      [SubscriberID] [int] NOT NULL,
      [SubscriberID] [int] IDENTITY(1,1) NOT NULL,