New Posts New Posts RSS Feed: Code First Error Message
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Code First Error Message

 Post Reply Post Reply
Author
Vonzkie View Drop Down
Senior Member
Senior Member
Avatar

Joined: 01-Aug-2011
Location: PH
Posts: 133
Post Options Post Options   Quote Vonzkie Quote  Post ReplyReply Direct Link To This Post Topic: Code First Error Message
    Posted: 10-Oct-2012 at 1:10am
Hi,

We are experiencing difficulty most of the time when we try to use our Code First Model that has a minor mismatch of Schema in the database. 

(E.g. in Model the field is nullable and in the Database it is not)

What I mean is to say is that, we can successfully build our project and the ibmx file is updated but when using the actual model to query or by simply instantiating it, a weird error occurs.

The problem here is that there is no "Friendly Error Message" being thrown during build time or runtime that can easily help the developers to pinpoint the issue.

Are there some configuration that we need to consider or something that might help us?

Thanks,
Von
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 10-Oct-2012 at 8:39am
What error message are you getting?  Generally, it's EF that generates the error and, although cryptic, it usually explains the problem. 
 
DevForce Code First build time support does detect a number of mapping issues early, which you wouldn't normally see until run time.  But there's always room for improvement. 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down