EF4 BindingSource error
-----------------------

                 Key: DNET-344
                 URL: http://tracker.firebirdsql.org/browse/DNET-344
             Project: .NET Data provider
          Issue Type: Bug
          Components: Entity Framework support
    Affects Versions: 2.5.2
         Environment: Win7 Turkish, VS2010 Ultimate, EF4
            Reporter: art
            Assignee: Jiri Cincura
            Priority: Critical


I adding a new record with normal code no problem.


But i added with bindindnavigator a new record an error. Firebird. Client try 
update. But record is new added and binding field to textbox.
Code is below.

qUESTIONSBindingSource.DataSource = GlobalClass.ent.QUESTIONS.OrderBy("it.ID");
zORLUKDERCESIBindingSource.DataSource = 
GlobalClass.ent.DIFFICULTY.OrderBy("it.ID");
comboBox1.DataSource = zORLUKDERCESIBindingSource;

rtbSoru.DataBindings.Add(new Binding("Rtf", qUESTIONSBindingSource, "SORURTF"));
rtbA.DataBindings.Add(new Binding("Rtf", qUESTIONSBindingSource, "ARTF"));
rtbB.DataBindings.Add(new Binding("Rtf", qUESTIONSBindingSource, "BRTF"));
rtbC.DataBindings.Add(new Binding("Rtf", qUESTIONSBindingSource, "CRTF"));
rtbD.DataBindings.Add(new Binding("Rtf", qUESTIONSBindingSource, "DRTF"));
rtbE.DataBindings.Add(new Binding("Rtf", qUESTIONSBindingSource, "ERTF"));
comboBox1.DataBindings.Add(new Binding("SelectedIndex", qUESTIONSBindingSource, 
"DIFFICULTYID"));

GlobalClass.ent.SaveChanges();    ----------------------- Error

When trace in ibexpert, first sql update. it's not insert.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to