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
(2)
4,239 times
Add to favorites
Applications
2/8/2016
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • 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,
      
      Alexandros
    • In SQL Script for creating table tbl_Subscribers
      Change :
      [SubscriberID] [int] NOT NULL,
      to:
      [SubscriberID] [int] IDENTITY(1,1) NOT NULL,