InsertOnSubmit
static public void add(UserLoginData item) { try { item.Order = GetNewOrder(); UserLoginData[] item_array=new UserLoginData[]{item}; var usersA = from c in users orderby c.Order select c; var usersB = from c in item_array select c; var usersC= usersA.Union(usersB);//related to this error: Local sequence cannot be used in LINQ to SQL implementation of query operators except the Contains() operator. MainListUsers = from c in usersA orderby c.Order select c; ListRefresh(); } catch (Exception ex) { Logging.Log.Report(ex.Message, "Error", new System.Diagnostics.StackFrame(true)); } }
Christian Graus wrote:It's a SQL database. Why do you need to use LINQ ?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)