Hi all, i am experiencing a program lock up issue using entity framework and object datasource..Let me explain the problem.. As usual, from the datasources i choose my entity object and drag some fields to the windows which are a mixture of combobox, some fields are empty and some fields are are filled before. The problem is, when i enter a text to a textbox or choose a value from a combobox, the program just wont let me choose another entity object field on windows or close the program, even BindingNavigator wont work..The only way to proceed and get the program out of stall is to change the row `from` the datagrid..Normally i would want edit all the fields i have on the windows and proceed to the next Record, but the program just stalls at the entity object field i edit on the windows.. Help would be very appreciated, its urgent
Minimech
Posts
-
Entity Framework Lock up issue please help, wierd problem !! -
Entity Framework ComboBox issue !!Thanks, i override the tostring method of the entity object to get the work done..When i use listbox nothing is needed to display correctly but with texbox this is needed i guess, thanks again
-
Entity Framework ComboBox issue !!Hello all and let me explain my problem briefly in Windows Forms application. If any of you read Julia Lerman`s book, i am basicly implementing the techniques that are explained there but one thing i couldn`t solve. To make it simple i have two tables with one to many relationship, like customer and address. I add the customer to the datasource and change the address navigation property to combobox. I drag name, surname and adress to the Forms. This is how i do databinding
CustomerEntities context = new CustomerEntities();
List<adress> myadresses = context.addresses.ToList();CustomerBindingSource.DataSource = context.customers.Execute(System.Data.Objects.MergeOption.AppendOnly);
AddressBindingSource.DataSource = myaddresses;Now as the book says i set the datasource of the addreess combobox to AddressBindingSource in UI then set displaymember, value and selectedItem. Everything works fine except that display member of the combobox doesn`t display porperly. It diplays as MyAppName.Address, meaning object itself..What am i missing please help me
-
Getting the Addons installed on the Browser!!!Hmm ok i`ll look into it, thanx
-
Getting the Addons installed on the Browser!!!Hello.. I am not talking about plugins..Let me give you an example Firefox has an addon called Downloadhelper, how could i detect that this addon is active while the user is surfing my wep page and take a course of action according to it...
-
Getting the Addons installed on the Browser!!!Hello, i searched a bit but couldn`t find any info about this !! Is there any way to detect the active Addons on the browser that is being used? I mean the user comes to your aspx page, and you take a course of action if a particular addon is installed or not.
-
Adding Parameter to a Stored Procedure that returns a `LIKE` quey!!Thanks for your advice, tried adding '%' at the and of the value but still invalid number at run time..it is somewhere in parameter setting and adding that i should add something but still could`t figure it :confused:
-
Adding Parameter to a Stored Procedure that returns a `LIKE` quey!!Hello all, i had no problem at adding parameters to a stored procedure and puttng the result in a dataset until i stated trying this with a Stored Procedure with
select * from table where column like something+'%
that takes parameters.. The problem is that it says `invalid number` at runtime not when executing procdure at my editor, so the problem is passing the parameters but i couldn`t figure it out, btw i use Oracle; Let me give you the codes of stored procedure and how i call it from c# :CREATE OR REPLACE PROCEDURE OGR_USER.studentfind(std_FName nvarchar2, std_LName nvarchar2, pRc out sys_refcursor) as begin open pRc for select * from ogr_user.STUDENT WHERE FNAME LIKE std_FName+'%' AND LNAME LIKE std_LName+'%'; end; OracleParameter std_FName = new OracleParameter("std_FName", OracleDbType.NVarchar2); std_FName.Value = name; std_FName.Size = 100; comm.Parameters.Add(std_FName); OracleParameter std_LName = new OracleParameter("std_LName", OracleDbType.NVarchar2); std_LName.Value = surname; std_LName.Size = 100; comm.Parameters.Add(std_LName); comm.Parameters.Add("pRc", OracleDbType.RefCursor).Direction = ParameterDirection.Output;
i tried parameters type varchar, nvarchar thinking that it would make a difference but no luck, i would really appreciate if anyone could help me with this, something goes wrong when i use like and % because i used the same code without a like query and there was no problem