locked
EF4 partial class using IDataErrorInfo to validate Values RRS feed

  • Question

  • Hi,

    I tried to use EF4 with a partial class (WPF) which implements IDataErrorInfo, but it seems not to work. Is it possible or what way would be the right to validate my entries?

    best regards,

    Dru

    Thursday, August 4, 2011 6:10 AM

Answers

  • Found that Link with c# code. that seems to be the right for me.

    http://msdn.microsoft.com/en-us/vbasic/Video/ee364700

    Tuesday, August 9, 2011 6:55 AM

All replies

  • Hi Dru,

    It is possible to use IDataErrorInfo with EF and WPF.
    Take a look at Beth Massi's post: http://blogs.msdn.com/b/bethmassi/archive/2009/07/07/implementing-validation-in-wpf-on-entity-framework-entities.aspx


    Gil Fink
    Thursday, August 4, 2011 7:58 AM
  • Hi Gil,thanks for the post, I already tried it this way, but it didn´t work. But i am sure it was my fault, i was in hurry :-)

    Thanks for your help!

    best regards

    Thursday, August 4, 2011 11:45 AM
  • Any update? Would you mind letting us know how it goes now?

    In addition, if you met some exception in your project, please provide more detailed error information to us to analyze your question better.

    Best Regards,


    Larcolais Gong[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, August 8, 2011 2:59 AM
  • Hi Larcolais,

    no updates yet. I wasn´t able to "migrate" the vb to c# source code (see Gil´s link above) to fit it for my project. Still happy for help :-)

    best regards

    Tuesday, August 9, 2011 6:45 AM
  • Found that Link with c# code. that seems to be the right for me.

    http://msdn.microsoft.com/en-us/vbasic/Video/ee364700

    Tuesday, August 9, 2011 6:55 AM