|
|
May 2008 - Posts
-
Hello I have a problem with this LinQ query: Query Dim DataSource = From atpt In db.TBLAttempts _ Where atpt.TBLRace.Forename Like "*" & TBXForename.Text & "*" _ And atpt.TBLRace.Surname Like "*" & TBXSurname.Text & "*" _ And atpt.TBLRace.Team Like "*" & TBXTeam.Text & "*" _ And atpt.TBLRace.Category Like "*" & TBXCategory.Text & "*" _ And atpt.TBLRace.Event Like "*" & TBXEvent.Text & "*" _ And atpt.TBLRace.Position Like "*" & TBXPosition.Text & "*" _ And atpt.Result Like "*" & TBXResult.Text & "*" Read More...
|
-
Hey I am developing some LINQ code to use alongside an existing database so thought I would use the designer to drag and drop tables. However when I attempt to drop a table from Server Explorer onto the LINQ to SQL Designer I get a message box with the following error: Element not found. (Exception HRESULT: 0x8002802B TYPE_E_ELEMENTNOTFOUND). If I close down the project and reopen it I get the same exception but the error occurs when processing the local data file. I am using Visual Studio 2008 professional, Read More...
|
-
hi To create dyanmic Linq query written this code var query = dc.VW_MyView.Where(o => Field1.WantToIncludeInWhere == true ? (Field1.state == enum_RatherThan .Equal ? (Field1.values == o.Field1 ? true : false ) : (Field1.state == enum_RatherThan .Like ? ( o.Field1.Contain( Field1.values) ? true : false ) )) : true) .Select("new ( Field1 )"); but for several fields this is very slow and greate create this string can`nt help me >>>var query = dc.VW_MyView.Where( " Field1 LIKE'%Field1%' ").Select("new Read More...
|
-
Hi I have some problems with a LinQ query I have written: My Query Using db As New SportDataClassesDataContext Dim DataSource = From r In db.TBLRaces _ Where r.Forename = TBXForename.Text _ And r.Surname = TBXSurname.Text _ And r.Team = TBXTeam.Text _ And r.Category = TBXCategory.Text _ And r.Event = TBXEvent.Text _ And r.Position = TBXPosition.Text _ And r.Comments = TBXComments.Text _ Select r If m_LinkedDGV Is Nothing Then Exit Sub End If With m_LinkedDGV .DataSource = DataSource TidyUpDataGridView(m_LinkedDGV) Read More...
|
-
var info = from userInfo in db.TuserInfo select new TuserInf { UserName=info.UserNmae, Sex=info.Sex=="M"?"man":"woman" }; this.listView1.DataContext=info.ToList(); if i write linq like that,it will happen a error in last sentence! it will ok when i write like following: var info = from userInfo in db.TuserInfo select new TuserInf { UserName=info.UserNmae, Sex=info.Sex }; this.listView1.DataContext=info.ToList(); Result:(and the data of database is also store likethis) UserName Sex "Jack" "M" "Tom" Read More...
|
-
One thing I love is good writing. I'm not making any claims about my own writing ability. (I tell my wife that I am the technical equivalent of a pulp fiction writer, more or less.) Technical writing is a craft, not an art. The other day, I was sitting in a meeting with a bunch of other Microsoft technical evangelists, and we were discussing the difference between "depth" content and "breadth" content. I think that we all intuitively know the difference - an in-depth book on building scalable SharePoint Read More...
|
-
I have a list of OrderStatus: List The OrderStatus class has the following columns: 1. ID 2. Amount 3. Cost 4. Margin I want to display subtotals for the selected ID rows the user selects. For example, if the user checks rows 1, 2, 3, 7, 8, 9, I would like to run a LINQ query to sum up the 3 columns and display subtotals. Unfortuantely, I am having issues getting the correct syntax. I can do one column at a time using the following code: var amount= from p in _orderStatusList where p.ItemGroupID Read More...
|
-
I have some code that works with an anonymously typed ("var") variable, but not when I try to make the type explicit. Consider the following code: Code Snippet public class FieldDescriptorInfo { public int FieldDescriptorID; public string FieldName; public int FieldType; public int FieldNum; } IQueryable fieldsDescriptors = theDataContext.FieldDescriptors .Select(fd => new FieldDescriptorInfo { FieldDescriptorID = fd.FieldDescriptorID, FieldName = fd.FieldName, FieldType = fd.FieldType, FieldNum Read More...
|
-
Hi everyone! Got a big problem. To evaluate the LINQ to SQL technology I have made a database of two tables "tabContact" and "tabContactEMail". I added this database to my database connections in VB Express 2008. When I add a new item (LINQ to SQL Class) and drag these two tables in the designer it creates some weird stuff that is definitiely wrong (he makes a tabContact class that is both a collection and has the properties of a single contact itself instead of making one class for a single entity Read More...
|
-
Hi , I want to change my sql query as linq.. update customers set cutomername ="Shiva" where custid =1 and custPO=2 and ProdName="Prod" I want to change this sql query to linq. Please help me some one. Shiva Read More...
|
-
Hi there, I'm in the process of building a custom linq provider, and would like to know about the possibility of mixing this provider with Linq To Objects seamlessly. To illustrate, imagine I have a web service which returns a list of Customers given only the name. The customers class for this example might look like: Code Snippet public class Customer { public int Id { get; set; } public string Name { get; set; } public string Address { get; set; } public DateTime DOB { get; set; } } I would be Read More...
|
-
Hi, I'd like to receive the newest element from a table via CreatedDate. I think this should be possible with MAX, can someone tell me how? This is the way I do it so far: Code Snippet Dim result = ( From e In dc.ExpenseStatusHistory _ Where e.ExpenseID.ToString = ID _ And e.Status = "correction" _ Order By e.CreatedDate Descending _ Select e).FirstOrDefault Many thanks, whaleshark Read More...
|
-
Hi, I would like to produce a document with the following element using LINQ. This code new XAttribute ( XNamespace .Xmlns + "xsi" , http://www.w3.org/2001/XMLSchema-instance ) creates xsi:noNamespaceSchemaLocation="contracts.xsd" but I also need to create xsi:noNamespaceSchemaLocation="contracts.xsd" . It seems no XNamspace exist for xsi. Has anyone go an idea? Thanks Glenn Read More...
|
-
Hey all. I have an XDocument that I want to save to file, however I don't want empty elements to be saved. For example, lets say I have the following XDoc in memory: Jon When I save out to file, I only want the following: Jon Is this possible? Read More...
|
-
Hi I am working on DAL Layer from which I have to return the Object with Types. If I use var What will be by return type of the method? Here I have two tables namely Directory and Files with one to many relation. I want to all the directory with files in that directory. Here below is my Query and My Methods return type is List public List GetDirectoryWithFiles() { using (DB oDB = new DB(ConString)) { DataLoadOptions oDataLoadOptions = new DataLoadOptions(); oDataLoadOptions.LoadWith(dir => dir.Files); Read More...
|
-
I use and Excel spreadsheet to track time spent on projects and to log telephone calls. Recently I am having trouble with the excel program closing (crashing?) when I am using different programs or sometimes when I am not even in my office. I have the autosave function set to save every 30 minutes. It appears that the files are not being saved at the scheduled intervals. ANy ideas? Read More...
|
-
What am I doing wrong? code from Window1.xaml.cs: private Office GetOfficeByName( string s) { try { IEnumerable Office > query = from b in _dataDc.Offices select b; foreach ( Office o in query) { if (o.OfficeName.Equals(s)) return o; else return null ; } } catch ( Exception ex) { Console .Write( "Error: " + ex.Message); } } private void btnA1_MouseEnter( object sender, MouseEventArgs e) { Office o = GetOfficeByName( "A1" ); // temp, for testing only btnA1.ToolTip = Convert .ToString(o.OfficeName); Read More...
|
-
Hi - I need to query a specific name in the xml file (i.e. 'the') and then find out if the next element is 'true' or 'false'. So each only exists once in the file and I want to retrun if it's true or false. Could someone please help with the query below. Thanks, Paul the true of false and false var query = from c in xdoc.Elements("wordlist").Elements("word").Elements("name") where c.Value == "the" select c. ?How to get value of next element ? I need to know if it's true or false. sorry original post Read More...
|
-
We are trying to create a Data Access Layer with minimal code in it. We pass a List of LINQ objects as parms to our web service methods. In order to get updates to work, I either had to use reflection or a deep clone technique to force the "identity manager service" (I think that's what it is called) to detect the changed fields. Ultimatley, the LINQ objects will be XML that will be processed by BizTalk. But my issue is now how to set a field to null. Apparently if a field value is null, the "identity Read More...
|
-
I'm using LINQ to load data from various XML files, and I'd like to bind the data to view DataGridView controls. I can't find any relevant sample (LINQ, XML and DataFridView [Windows Forms]). would you please help me figure out this issue? Thanks, Janiv Ratson. Read More...
|
-
HI, I am facing one problem in wcf where i used linq queries. I want to return my linq query in wcf(.svc.cs file). My query will return multiple fields . when I am doing this I am facing problem like “ The underlying connection was closed: The connection was closed unexpectedly ”. I tried in the google, I have done all the changes in web.config of client(application) and server(wcf). I return my query using iQueriable,Ilist,IEnumerable and I am getting runtime error.my code as follows Permissions.svc.cs: Read More...
|
-
Hi, i have some problems writing a nested LinQ query. I have the following xml structure: Now i want to get the features of the 2 given parameters productID and ModulID. By now i have 2 LinQ queries: from item in _Xml.Descendants("product") where item.Attribute("id").Value == productID select item; and from item2 in xItem.Descendants("modul") where item2.Attribute("id").Value == modulID select item2; Can someone help me to get just one LinQ query out of these 2? thanks.... Read More...
|
-
We have following scenario: 1) WCF Service a. Use LINQ to retrieve Data b. Use LINQ to update Data 2) Client a. Call WCF service to retrieve data b. Update/Insert/Delete data c. Call WCF service to save data We have foreign key relationship in many tables. When child/master table foreign key relationship is mapped in domain (DataContract) class, WCF is not able to serialize domain object across the service boundary. If I comment out the line mark with yellow background, WCF successfully serialize Read More...
|
-
Hi, I'm trying to override how associations are loaded as descriped here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2143547&SiteID=1 Code Snippet private IEnumerable LoadOrders(Customer customer) { throw new ApplicationException("test"); } but, the method is not being called. I even tried to set prefetching as mentioned at the bottom of that thread: Code Snippet System.Data.Linq.DataLoadOptions options = new System.Data.Linq.DataLoadOptions(); //options.LoadWith(c => c.Orders); options.AssociateWith(c Read More...
|
-
Hi, I'm trying to override how associations are loaded as descriped here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2143547&SiteID=1 Code Snippet private IEnumerable LoadOrders(Customer customer) { throw new ApplicationException("test"); } but, the method is not being called. I even tried to set prefetching as mentioned at the bottom of that thread: Code Snippet System.Data.Linq.DataLoadOptions options = new System.Data.Linq.DataLoadOptions(); //options.LoadWith(c => c.Orders); options.AssociateWith(c Read More...
|
-
Hi I have created a linq view and bound it to a data grid. When I delete rows and then try and save the deletions using a data-adapter I get an error "Deleted row information cannot be accessed through the row.", if I create standard data view this works fine. I think Linq tries to "re-query" the data table as the data adapter runs and cannot access deleted rows. Sample code: try { /* USE [TestDb] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Table1]( Read More...
|
-
Dear All, I am trying to make sure that ChangeConflictException will be thrown when the object is already deleted. The result I get the datacontext doesn't throw the changeconflictexception out...Is that right? I try the following code and set a breakpoint on database.SubmitChanges(); ForumDB database = new ForumDB(); Forum forum = database.GetTable().SingleOrDefault(o => o.ID == 9); database.GetTable().DeleteOnSubmit(forum); try { database.SubmitChanges(); } catch (ChangeConflictException e) { //database.ChangeConflicts.ResolveAll(RefreshMode.OverwriteCurrentValues, Read More...
|
-
hi , I am new to Linq so plz dont mind if question looks really stupid to u. Actually I wrote the following code and when I run it I get the "NullReferenceException Unhandeled" Code Snippet Dim arr(5) As String Dim str As String Dim query As IEnumerable( Of String ) arr(0) = "Mike" arr(1) = "Error" arr(2) = "Hai" arr(3) = "this" arr(4) = "Links" query = From n In arr Where n.Length = 5 Select n.ToUpper For Each str In query TextBox1.Text += str.ToString Next Can anyone tell me wat could be the error Read More...
|
-
Hi all, I have a question about datacontext in Linq. I use static datacontext in my projects. note to this example: Code Snippet public class Util { public static dbDataContext db = new dbDataContext (); //other code and methods } and use it like this: Code Snippet User u = new User { Active = active.Checked, Address = address.Text, BirthDay = GetBirthDay(), Desc = desc.Text, Family = family.Text, Job = job.Text, MembershipDate = GetMemberShipDate(), Name = name.Text, ParentName = pname.Text, ShSh Read More...
|
-
I wrote the following piece of code using ( NorthwindDataContext context = new NorthwindDataContext ()) { DataLoadOptions loadOptions = new DataLoadOptions (); loadOptions.AssociateWith Customer >(c => c.Orders.Take(5)); context.LoadOptions = loadOptions; var customers = from c in context.Customers select c; foreach ( var c in customers) { foreach ( var o in c.Orders) { Console .WriteLine(o.OrderID); } } } When I run this code I expect the sql profiler to show me something like this in the first Read More...
|
-
is it possible to refactor this, as a linq query instead? Code Snippet // StringCollection myStringCollection; // IList someList; foreach ( string item in myStringCollection ) { someList .Remove(item); } cheers. Read More...
|
-
Hi, I'm working on a simple music player as a way to learn the new C# 3.0 features. I'm building a DataTable of songs with columns like Path, Title, TimesPlayed, etc. When the program exits, it serializes the DataTable into an XML file. Then, when started again, it retrieves the DataTable from the XML file. I have a method "GetSongs(string target)" in my static "Library" class (which contains the actual DataTable) that uses a LINQ to return a DataView that representing a subset of the songs which Read More...
|
-
Hi, Having this : IEnumerable string > tagsToKeep The following query can give me duplicates: var list = from c in desc.Elements( "value" ) from c2 in tagsToKeep where ( string )c.Attribute( "value" ) != ( string )c2 select c; Since I can't use distinct, how can I do ? I need to use except but I can't find a way to do this... Thanks ! Read More...
|
-
What is the purpose of the "Storage" property on DataAttribute? The reference docs say "Specifies the name of the underlying storage field.". I understand if field names and property names are different you may need this, but does it also control access similar to nhibernate's access modifer? Where I can tell nhibernate to access the field instead of the property. Thanks, Joe Read More...
|
-
I had linq to sql datacontext as below and I am just wondering that how can create the method that would fill the record into existing model class based on the current locale language. For example, I would like to have English as default language and Spanish as secondary language. I would appreciate if anyone could advice me a solution. Thank you http://img256.imageshack.us/img256/2867/localqj6.jpg Code Snippet namespace Model { public class Location { public int ID { get ; set ; } public int PID Read More...
|
-
Hello! I´m stuck :( I have the following: A SQL DB with to Tables (NewStuff and OldStuff) 2 Datagridviews each of them have bound thier Datasource to 1 Table Now i have created a Linq join: Dim resultdupes = From newstuff In db.NewStuffs Join Oldstuff In db.OldStuffs On newstuff.MD5Hash Equals Oldstuff.MD5Hash and with a Buttonclick i want to have the result in one of the existing Datagridviews. I tought i can do this with the following: Me .dgrvNewstuff.DataSource = resultdupes But i got an empty Read More...
|
-
The DataContext is a rather careful beast. Once an object is retrieved, the DataContext will not stomp on it if a query returns the same object again. This is intentional. Imagine the chaos if you modified some of the retrieved objects or even read the values and made some decision based on that and then the results of a subsequent query just stomped all over that object with newly changed values from the database. But that does create a separate problem: if you want to get the new values from the Read More...
|
-
This post has me worried: http://oakleafblog.blogspot.com/2008/05/is-adonet-team-abandoning-linq-to-sql.html Read More...
|
-
Hi, I'm probably doing something wrong: This query works...unless tagsToKeep is empty ! // Filter this to remove the tagsToKeep : We'll only have the tags to remove ! var list = from c in desc.Elements( "value" ) from c2 in tagsToKeep where ( string ) c.Attribute( "value" ) != c2 select c; where : IEnumerable string > tagsToKeep Why ? Thanks ! Read More...
|
-
I have just started dipping my toes into Linq, specifically Linq to XML. I have kind of gotten familiar with the syntax to write object data out into an xml file, but I'm just not making the connection for the query approach to pulling the xml back out and returning it into the object form. I created a small sample so someone can hopefully point out what I'm missing, or just tell me to do it the way I do see to do it which is long hand. I have a simple class User with 2 properties: Code Snippet public Read More...
|
-
Is it possible to provide an example of how LINQ would work with a stored procs which returns multiple tables (from joins). As often data is a lot more than just a single table. How can we map these data to existing entities? eg. Create procedure GetData() SELECT C.CustomerName, O.OrderDetails, OI.OrderItemName FROM Customer C INNER JOIN Order O on O.CustomerID = C.CustomerID INNER JOIN OrderItem OI on OI.OrderID = O.OrderID Thanks. Read More...
|
-
Hi everyone, I'm new to LINQ, and I'm having troubles to get intellisense , but I'm using a typed dataset : sample : Code Snippet Dim query = From dtr_client In tbl_Clients _ Where dtr_client!type = 3 So this is a basic LINQ query. I declare a query ("query"), and I retrieve datarows elements ("dtr_client") from a datatable ("tbl_Clients") The dataset, along with the datatables have been done directly in Visual Studio 2008 with the designer . It is then hardcoded into my project. I believe it is Read More...
|
-
my linq like this: var info = from tc in db.TTc join sp in db.TXPDM on tc.SPBH equals sp.XPDM join ry in db.TRY on tc.RYID equals ry.RYDM join role in db.TRole on tc.RYLX equals role.RoleID where tc.SPBH.Equals(spid) select new { tc.TCID, sp.XPMC, ry.RYMC, role.RoleName, tc.TCBL }; the "spid" is an args,when i use binding to thie listview's itemsource,like this : this.listView1.ItemsSource = info.ToList(); it happen error! Read More...
|
-
I have a problem with DataContext - it inserts existing data in my database, even without calling InsertOnSubmit. Any ideas? Here's the code: Code Snippet ApplicationDataDataContext db = new ApplicationDataDataContext(); ChangeSet c = db.GetChangeSet(); // nothing to insert Place place = new Place(); place.Country = CountryClass.CreateObject(countryXmlString, db); c = db.GetChangeSet(); // one Place is waiting for insert Code Snippet public static class CountryClass { public static Country CreateObject(string Read More...
|
-
Here is my sproc: Select ID, (col1 + ' ' + col2) As RateDate From Rate -------------------------------------------------- Here is my code: EmployerDataContext db = new EmployerDataContext (); var eeRates = db.sproc(); ddlAccrualRateRR.DataSource = eeRates; ddlAccrualRateRR.DataTextField = "RateDate" ; ddlAccrualRateRR.DataValueField = "ID" ; ddlAccrualRateRR.DataBind(); ------------------------------------------------ When I run the web app, I get the following error: DataBinding: 'sprocResult' does Read More...
|
-
This is a story of a GridView, LinkDataSource, FormView, ObjectDataSource and a SPROC.... All of this is Auto generated code, there is some code in the code-behind to unhide the FormView, but shouldn't have an impact. When a record is selected from the GridView, I would expect the details to be shown in the FormView. Instead I get the error indicated below. Can someone expaline to me what his happening here and what I'm doing wrong? See below for specifics... SPROC Code Snippet ALTER PROCEDURE dbo.StateProvince_GetById Read More...
|
-
Hi all, The one feature in LINQ to SQL that is missing that I really wanted was support for many-to-many associations. The way it's done now is with two many-to-one associations and defining the association table as a class. If you would like to see support for a true many-to-many mapping, please vote for my suggestion on the Connect web site below. Thanks. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=345619 Read More...
|
-
Let say I have a Contact entity: ID Name Function And these contact have a billing address and a postal address: ID Street Nr City Type So these are a few sample objects: Contact --------------- 1 Johnson Manager Adress --------- 1 Wallstreet 23 Houston Billing 2 Longstreet 34 New york Postal Contact ------------ 2 Dirksen Sales Adress --------- 3 Chamberstreet 197 Tannersville Billing 2 Reade street 15 Bartonsville Postal So I have two contact entities, who both have two addresses. I want to select Read More...
|
-
Hello all! 1. I have typed Dataset1 with couple tables and relations between tables. 2. every typed DataTable is DataSource for grid as DataView e.t. exists dependency property RootView = Dataset1.datatable1.asDataView(); gridView1.DataSorce = RootView; 3. I use linq: var query1 = ( from n in List1 where n.IsChecked == true select n); foreach ( var content in query1) { IEnumerable DataRow > query2 = from d in Dataset1.datatable1.AsEnumerable() where d[currColumnName].ToString() == content.ContentId.ToString() Read More...
|
-
Hello I have 2 tables, say A and B. B hold a foreign key from A I need to do an insert into A. The problem I meet is that Linq try to do an insert into B as well, but I just want an insert into B. Is there a way at InsertOnSubmit level or other to tell Linqs: just care A table as if there was no relation between A and B? thanks Read More...
|
-
In case you didn't know, Blizzard publishes XML data for World of Warcraft characters. It comes as a fairly large XML doc. Right now I'm using XPath to parse the document and push data into a class. My question is, would LINQ to XML be a good choice to use in place of XPath for an XML document like this? Are there performance gains compared to XPath? Here's a part of the XML doc: Read More...
|
-
Is is possible for a LINQ stored proc query to return values from a procedure that contains multiple select statements. Like 'GetNext..' in a DataReader. Jimm Read More...
|
-
Today, Microsoft announced support for more document format standards, including ODF, PDF, and XPS. Doug Mahugh has a post that includes a screen clipping from Office 2007 SP2, showing the support for ODF, PDF, and XPS. Gray Knowlton adds a lot of detail regarding Microsoft's future participation in the technical committees of standards bodies, including the OASIS ODF Technical Committee. Jason Matusow gives some perspective on the significance of this from our customer's point of view. From a personal Read More...
|
-
Hi, I want to build LINQ expression that in SQL would look like: Code Snippet select p.Id from Person p join PersonJob pj on pj.PersonId = p.Id and GetDate() between pj.HireDate and IsNull(pj.RetireDate, '2999-01-01') My problem is how to define the p.ID equals pj.PersonId, DateTime.Now >= pj.HireDate and DateTime.Now Any help is appreciated. Read More...
|
-
Hi All, I'm at a sticking point. I keep gettin a SQL exception - Invalid column name 'IncidentDate'. We have a database with a column called Incident Date. When writing code in C#, using T-SQL syntax, I'd reference the column as [Incident Date], but not moving to LINQ, I'm not sure how to do this. Here is the test class I have for the database [ Table (Name = "*FailureData" )] public class FailureData { [ Column (DbType = "varchar(50)" )] public string PrimeSec; [ Column (DbType = "varchar(50)" )] Read More...
|
-
SELECT * FROM Permissions WHERE Permission_ID NOT IN ( SELECT Permission_ID FROM Page_Permissions WHERE Page_ID = 1 ) Suppose there are three associated tables. 1.Customer - master 2.Order - details table associated with Customer 3.OrderDetails - detail table assiciated with Order table So whenever i fetch customer using LINQ query, all the associated details will be fetched. but what i need is, I need to fetch a customer based on his id and fetch his orders based on some condition in OrderDetail Read More...
|
-
Code Snippet static void AddAssociationElements(XElement typeElement, Type type) { IEnumerable properties = type.GetProperties(); properties = properties.SkipWhile(p => !typeof(IEntityDescriptor).IsAssignableFrom(p.PropertyType) && !p.PropertyType.IsSubclassOf(typeof(EntityBase))); foreach (PropertyInfo propertyInfo in properties) { if (!propertyInfo.PropertyType.IsSubclassOf(typeof(EntityBase))) { throw new Exception(propertyInfo.ToString()); } AddAssociationElement(propertyInfo, typeElement); } Read More...
|
-
Hi I would like to replace the inner xml of an XElement with a new string which contains HTML tags. The problem I'm facing is that if I set the new string using the XElement.Value property, the HTML tags get encoded to < and >. Following is a summary of the issue: I have strings in the CData section in my doc1.xml: object]]> : And elements like following in my doc2.xml: to be replaced... : I would like to copy the strings in CData section to the inner XML of the elements in doc2.xml. Currently Read More...
|
-
|
Hello, In the follwoing scenario: var ops = db.OrderProducts.Select(x => x).Where(x=> x.OrderId == orderId); db.OrderProducts.DeleteAllOnSubmit(ops); db.SubmitChanges(); Does the Delete occure for each and every item in ops alone? (i.e. first get a collection of OrderProducts and than | |
|