19 Eylül 2013 Perşembe

Validation failed for one or more entities. See 'EntityValidationErrors' property for more details

Validation failed for one or more entities. See 'EntityValidationErrors' property for more details


Asp.Net MVC ve Entity Framework kullanan web uygulamamda şu şekilde hata alıyorum:
Validation failed for one or more entities. See 'EntityValidationErrors' property for more details
icerik.Okunma = icerik.Okunma ?? 0;
                icerik.Rating = icerik.Rating ?? 0;
                icerik.ToplamOylayan = icerik.ToplamOylayan ?? 0;
                icerik.AnaHaber = string.IsNullOrEmpty(icerik.AnaHaberGorselTur) ? false : true;

                db.Icerik.Add(icerik);
                db.SaveChanges();

Hiç yorum yok:

Yorum Gönderme