none
Property of a poco ignored when mapping not exists. RRS feed

  • Question

  •  In my model if a POCO have a property of type which is not supported by EF (types for those mapping not provided), that property won’t be reflected in Database, and no error is thrown.

    Example: char, object.

     

    public class Dept

            {

                 public int Id { get; set; }

                 public char name { get; set; }  //“this won’t be reflected in database and no error would be thrown. Simply it ignores this property.”

                  public object pic { get; set; }  //same here

     

             }    

     

    Is this something like behavior by design? 

    Friday, August 19, 2011 5:52 AM

Answers

All replies