LINQ Query

508

Solutions

379

Contributors

Language Integrated Query (LINQ) is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages, although ports exist for Java, PHP, JavaScript and ActionScript. LINQ extends the language by the addition of query expressions, which are akin to SQL statements, and can be used to conveniently extract and process data from arrays, enumerable classes, XML documents, relational databases, and third-party data sources.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi,

I done some sample code which should search matching record and display in specified format.

i am unable to get exact format.

my output is : 100,300 (because only matching ENGLISH H and MATHS L)

see my sample code's
0
Get HTML5 Certified
LVL 9
Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Hi Experts!

Need your help updating LINQ query.

The LINQ query should return a distinct record of locationId and phonenumber.
Then which need to extract locationId and phonenumber and store it in local variables.

SQL Query:

SELECT DISTINCT  
       personlocation.LocationID,
       phone.PhoneNumber
FROM dbo.personProducts pp
     INNER JOIN dbo.personPhonesLocations phoneLocation ON pp.personLocationRecID = phoneLocation.personLocationRecID
     INNER JOIN dbo.personLocations personlocation ON pp.personLocationRecID = personlocation.personLocationRecID
     INNER JOIN dbo.Phones phone ON phoneLocation.PhoneID = phone.PhoneID
     INNER JOIN dbo.PhoneTypes PhoneTypes ON pl.PhoneTypeID = PhoneTypes.PhoneTypeID
WHERE pp.PersonNumber = 'ABC123'
      AND PhoneTypes.PhoneTypeName = 'Contact Number'

Open in new window


C# method:
var personPhone = (from pp in dataContext.personProducts
from phoneLocation in dataContext.personPhonesLocations
from personLocation in dataContext.personLocations
from phone in dataContext.Phones
from phoneType in dataContext.PhoneTypes
where pp.PersonNumber == "ABC123" && phoneType.PhoneTypeName == "Contact Number"
select new
{
LocationId = personLocation.LocationID,
phonenumber = phone.PhoneNumber
}).Distinct();


if (personPhone != null)
{
    string locationId = ???; <-- need help
    string phonenumber = ??  <-- need help

}

Open in new window


TIA!
0
How to return row based on finding columns and its value

List<string> Str = [0] Sub A=100

                              [1] Sub B=80

now i want to find the column of Sub A and Sub B in my datatable.

If column found then find the row of the above column values for condition basis.

for example (as per example data table).

   Sub A value is 80 ==> this should check in between Sub A(MN) and Sub A(MX) &&
   Sub B value is 100 ==> this should check in between Sub B(MN) and Sub B(MX)

5. Final result would be return true/false (sample example returns true)

Tried below Query

                          string[] str = { "Sub A=80, Sub B=100"}; // Range should check between range of minimum and maximum of both subjects

  DataTable dt = new DataTable();
        dt.Columns.AddRange(new[] { new DataColumn("TYPE"),new DataColumn("Sub A(MN)"), new DataColumn("Sub A(MX)"), new DataColumn("Sub A(MN)"),
new DataColumn("Sub B(MX)") ,new DataColumn("Sub A") ,new DataColumn("Sub A1"),new DataColumn("FROM"),new DataColumn("TO"),new DataColumn("DEPT") });
        dt.Rows.Add(null, "100", "1000", "100", "100", null, null, 20, "100", "S6");
        dt.Rows.Add(null, "200", "2000", "200", "200", "200", "200", "35", "100", "S7");
        dt.Rows.Add(null, "100", "1000", "100", "100", "100", "100", "35", "100", "S7");
        dt.Rows.Add(null, "100", null, null, "100", "100", "100", "35", "100", "S7");
        dt.Rows.Add(null, "100", "1000", "100", null, null, "100",…
0
Hi,

How to find and search list values which is available or not from multiple another lists.

For example,

 List<string> FromList = new List<string>() { "Sub A", "Sub B" };
        List<string> List1 = new List<string>() { "Sub A=80", "Sub D=70" };
        List<string> List2 = new List<string>() { "Sub B=100", "Sub C=90" };

I want to take Fromlist and check this will be available or not in List1 and List2.

if it is available then it returns result as Sub A=80 and Sub B=100.

if it is not available in both list (List1 and List2) then it returns false.

How to form in LINQ Query..?
0
How to I add "or" to the following:

 var recordCount = db.tblWHQReports.Count(a => a.Mgr == employeeid);

??
0
Hi ,

I am passing list value into the datatable.

I want to find the column first and then check whether the value exist or not for that columns.

I want to write in LINQ Query as bool true/false

for example,

string str ABSCHECK = ABS A#ABS B // input value

string[] words1 = str.Split('#'); //Splitting the values

words1[0] ABS A //list

           [1] ABS B

The above two value is a column name and i want to check in the below table.

 DTTABLE :

A      ABS A(MN)      ABS A(MX)      ABS B(MN)      ABS B(MX)      ABS C(MN)      ABS C(MX)
100      100      100      100      100      100      100
For ABS A ==> Matching two columns and values present(like ABS A(MN) and ABS A(MX))

For ABS B ==> Matching two columns and values exists (like ABS B(MN) and ABS B(MX))

So i want to return result is true.

if nothing is matching, it means (column not identified and value not present) returns false.

How to write LINQ..?

below is my query

string str ABSCHECK = ABS A#ABS B // input value

string[] words1 = str.Split('#'); //Splitting the values

bool results = (from r in DTTABLE.AsEnumerable()
                           select r.Field<string>(words1.ToList())); // to find out columns and value

but not working..?
0
I have a record in sql server 2016 that has two time(0) columns.  I need to do a query with linq that returns the id when the current time is between the 2 stored times (starttime and endtime).

any help appreciated.

string now = DateTime.Now.ToString("HH:mm:ss");

            var result = (from s in db.Shifts
                          where s.StartTime >= DateTime.Parse(now) &&
                          s.EndTime <= DateTime.Parse(now)
                          select s.ShiftId);

Open in new window

0
Hi Experts,
I need help setting a default value to 0, when the returned value is null, or 0.
I have tried the code below but I get a blank\empty field in my table.  See code below, and let me what I am doing wrong.

CODE
var paper = (db.Manifests.Where(m => m.ID == ID && m.ProcessedDate.Value.Month == DateTime.Today.Month).Sum(m => m.Claims != null  ? m.Claims : 0)).Value;
vals.Add((paper.ToString().Length > 0) ? string.Format("{0:###,###}", paper) : "0");

Open in new window



Thank you,
mrotor
0
Hi,

I want to check some word which contains some + symbols. when i write the below query it should return true.

but, i am getting object reference error.

Also my condition is should check null value in column2 and column3

below is my code:


Inparam1 = "A+B";  
bool Result1 = DT1.AsEnumerable()
                               .Any(row => (row.Field<String>("Col1").contains(Inparam1)) && (row.Field<String>("col2") == null) && (row.Field<String>("col3") == null)));

The above code should return "TRUE" as per my below referring table. But, it returns "Object reference Error"

DT1 Table

Col1      Col2      Col3
A+B/D+EB              
A/D+EB              
A+B/X+A1              
A      2      3
what is the problem and where i want to change the code..?
0
i have a method that takes two datatable and does a inner join using LINQ and then i am using a where condition where i tell it to only give me the records where the status does not equal status from the other datatable but the values returned has matches. so what am i doing wrong in the code below?

DataTable RemoveCustomers = (from r in FirstDataTable.AsEnumerable()
                                         join s in SecondDataTable.AsEnumerable()
                                         on r.Field<string>("Customer") equals s.Field<string>("Customer")
                                         where r.Field<string>("STATUS").Trim() != s.Field<string>("STATUS").Trim()
                                         select s).CopyToDataTable();

  foreach (DataRow dr in RemoveCustomers.Rows)
            {
                
                // string cust = dr["Customer"].ToString();
                tblDiff.Rows.Add(dr["CUSTOMER"].ToString().Trim(), dr["NAME"].ToString().Trim(), replaceapostrophe(dr["ADDRESS"].ToString().Trim()), replaceapostrophe(dr["ADDRESS 2"].ToString().Trim()), replaceapostrophe(dr["CITY"].ToString().Trim()), dr["STATE"].ToString().Trim(), dr["ZIP CODE"].ToString().Trim(), dr["PARENT"].ToString().Trim(), dr["TELEPHONE"].ToString().Trim(), dr["FAX"].ToString().Trim(), dr["TERMS OF PAYMENT"].ToString().Trim(), dr["COUNTRY"].ToString().Trim(), dr["CURRENCY"].ToString().Trim(), "[b]4[/b]", dr["LONG"].ToString().Trim(), dr["LAT"].ToString().Trim(), 

Open in new window

0
Want Experts Exchange at your fingertips?
LVL 9
Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

how to get coming expires before 7 month  in linq
0
Receiving an error on var found.  The problem is that the first time the code is ran this.productModel is null.  the Linq statement is to verify if the product exists before adding the value again.  I can't write

var found;

Then check to see if product.model == null.

Any idea how to work around this?

public class GetProd
{
            public ObservableCollection<ProductModel> productModel { get; set; }
            
             public void GetTheProd(string Name)
             {
                  if (App.productModel != null)
                      this.productModel = new ObservableCollection<ProductModel>(App.productModel);
                   .........
                  var found = (from prod in this.productModel where prod.Name== name select prod).ToList();
             }
}

Open in new window

0
I have BPM (Method Directive) in Epicor 10.1.600.

BO:  JobEntry

Method:  ChangeJobHeadProdTeamID

The user trigger its from the Job Entry screen by changing the "Prod Team" field.  The BPM has a Post-Processing directive, which looks like this:
foreach (var ttJobHead_Row in ttJobHead)  //ttJobHead
{
  using (var txScope = IceContext.CreateDefaultTransactionScope())
  {
    //get the header row and update it
    var jobheadrow = (from JobHead_Row in Db.JobHead.With(LockHint.UpdLock)
                      where JobHead_Row.Company == ttJobHead_Row.Company
                      && string.Compare(JobHead_Row.JobNum, ttJobHead_Row.JobNum, true) == 0
                      select JobHead_Row).FirstOrDefault();
               
               if (jobheadrow != null)
               {
                 jobheadrow.Serial_c = callContextBpmData.Character01;
                 jobheadrow.Height_c = Convert.ToInt32(callContextBpmData.Number01);
                 jobheadrow.Width_c = Convert.ToInt32(callContextBpmData.Number02);
                 jobheadrow.PaintColor_c = callContextBpmData.Character02;
                 
               } 
      
    }
    
    Db.Validate();
    txScope.Complete();    

  }
   
}

Open in new window


It executes successfully, and brings me back to the Job Entry screen.  When I select "Save" on the Job Entry screen, I get the error:
error
I have tried putting in:
var jobEntryBO = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.JobEntrySvcContract>();
var currentJob = jobEntryBO.GetByID(ttJobHead_Row.JobNum);
this.dsHolder.Attach(currentJob);

Open in new window


before the line:
txScope.Complete();

But still receive the error.  Would you know what is wrong here?
0
I have the following xml file that I would like to read in c#.

It should be simple but I am having a little trouble reading the 'Items' in the file.  I would like to read the code and description for each 'item' in the file.  I would like to use linq but as I said, I am having a little trouble.

As always, all help appreciated

Thanks

David


<?xml version="1.0" encoding="UTF-8" ?>
<examplepartner xmlns="http://www.example.com/example">
<BRAND>example</BRAND>
<Styles>
<Item>
<Code>A12345</Code>
<Description>Item 1</Description>
</Item>
<Item>
<Code>A987654</Code>
<Description>Item 2</Description>
</Item>
<Item>
<Code>A65987</Code>
<Description>Item 3</Description>
</Item>
</Styles>
</examplepartner>
0
Hello Experts.

I've successfully built quite a few LINQ queries in my Windows Form project thus far, but for some reason, I am not able to get the "For Each" code to recognize the fields I'm selecting. The error condition is "[FieldName] is not a member of 'System.Array' in LINQ Query".

I did my homework and found that I needed to add Imports System.Linq in my declarations, and sure enough it was missing (which I find strange since this has been working fine for all my other LINQ queries).

My primary objective with the code is a grab a Picture from a related table, and populate a PictureBox control with the result. Here's the code I've got right now:
Private Sub MyPlayerPicture()
    ' Process Picture separately to better handle Null values
    Dim APAID As Integer = CInt(Me.MyPlayersAPAID.Text)
    Dim GetPicture =
         (
             From RosterData In SNAPDataSet.RosterView
             Where Not RosterData.IsNull("Player_Picture")
             Select RosterData.Player_Picture
         ).ToList
    If GetPicture.Count = 0 Then
        Me.MyPlayersPicture.Image = My.Resources.Silhouette
    Else
        For Each row In GetPicture
            If row.APA_Player_ID = APAID Then
                Dim ppBlob() As Byte = row.Player_Picture
                Dim ppStream As New MemoryStream(ppBlob)
                Me.MyPlayersPicture.Image = Image.FromStream(ppStream)
                Exit Sub
            End If
        Next row
    End If
End Sub

Open in new window


The lines with error conditions are the ones which reference row.[FieldName]. I can also confirm that Intellisense doesn't recognize row as associated with the .

I have tried several other permutations of the above before posting this including removing the Where clause, as well as fetching single records by setting the Where clause to "Where Not RosterData.IsNull("Player_Picture") AndAlso RosterData.APA_Player_ID = APAID".

BTW, this subroutine is called by its predecessor which populates other fields on the same form when the record is changed as shown here:

Open in new window

0
I looked at some of the other related questions, but didn't find a good answer. My TSQL query works fine:

select PORel.ReqNum,PORel.ReqLine,XFiles.* from E10DB.Erp.PORel PORel
JOIN E10DB.Erp.ReqDetail ReqDetail ON ReqDetail.Company = @company AND 
      ReqDetail.ReqNum = PORel.ReqNum
JOIN E10DB.Ice.XFileAttch XFiles ON XFiles.Company = @company AND 
       XFiles.Key1 = CONVERT(nvarchar(50),ReqDetail.ReqNum)
WHERE PORel.PONum = @ponum    

Open in new window


I would like to translate this into a LINQ result like:

var joinResultRows = from PORel , etc.,..........  

Open in new window


so I can do loop through them to do something :
 foreach(var joinResult in joinResultRows)
 {
     string custID = joinResult.CustID;
     string ponum = joinResult.PONum;
 }    

Open in new window


Any thoughts? Thanks!
0
I am performing a LINQ query to find duplicates in a DataTable.  It is working perfectly with Option Strict OFF.  However, for compliance purposes, I must have Option Strict ON.  Example-A is the original code.  In Example-B, I modified the syntax to get it to compile, but it fails at runtime.

Dim dtDivision4_Results As DataTable
<Fill DataTable>


Example-A: LINQ query when: Option Strict OFF

This code runs properly and returns duplicates in dtDupAccounts

 Dim dtDupAccounts = dtDivision4_Results.AsEnumerable().GroupBy(Function(i) i.Field(Of String)("AccountNumber")).Where(Function(g)
 g.Count() > 1).Select(Function(g) g.Key)


Example-B: LINQ query when: Option Strict ON

The code compiles, but at runtime, I get an "Invalid Cast Exception".

 Dim dtDupAccounts As DataTable = CType(dtDivision4_Results.AsEnumerable().GroupBy(Function(i) i.Field(Of String)
 ("AccountNumber")).Where(Function(g) g.Count() > 1).Select(Function(g) g.Key), DataTable)


The exact exception I get is:

+            $exception      {"Unable to cast object of type 'WhereSelectEnumerableIterator`2[System.Linq.IGrouping`2[System.String,System.Data.DataRow],System.String]' to type 'System.Data.DataTable'."}      System.InvalidCastException


Please help me perfect the syntax of the query in Example-B.
I am a novice to VB.Net and your help in correcting my syntax would be greatly appreciated.
0
We are updating our website and now have two set of members.  One set of those who have registered and one set of those historical members who have yet to re-register.  I am looking for the ability to merge(union) those two tables for a search functionality however I am struggling with the union.

In SQL
select  member_id, ssn
from member a 
union 
select  member_id, ssn
from member_historical

Open in new window


LINQ
     var union = (from members in db.members
                    select new
                    {
                        members.member_id,
                        members.ssn
                    }
                ).Union
                    (from member_historical in db.member_historical
                     select new
                    {
                        member_id = member_historical.member_id,
                        ssn = member_historical.ssn
                    }
                );

Open in new window


When I return view(union) an error:  Argument type 'system.linq.Iquerable<member_id;int ssn:string}>' is not assignable to model type of 'system.collections.generic.IEnumberable<Data.member>'



Tried to cast:  return View((IEnumerable<member>) union);


I'm a  little lost, any help or guidance is appreciated.
0
I have the following query and am getting the error:
LINQ to Entities does not recognize the method 'Int32 ToInt32(System.String)' method

Any idea why Convert.ToInt32 cannot be used?  How would I revise this to get it working?

string LookupCompany = "DD";
string LookupTable = "Price";
string LookupPartNum = "107";
decimal LookupConfigValue = 3360;
var PriceFound = (from ROW in Db.PcLookupTblValues
                                join c in (
                                    (from a in Db.PcLookupTblValues
                                     join b in (
                             (from PcLookupTblValues in Db.PcLookupTblValues
                              where
PcLookupTblValues.Company == LookupCompany &&
PcLookupTblValues.LookupTblID == LookupTable &&
(PcLookupTblValues.ColName == "PartNum" &&
PcLookupTblValues.DataValue == LookupPartNum)
                              select new
                              {
                                  PcLookupTblValues
                              })) on new { RowNum = a.RowNum } equals new { RowNum = Convert.ToInt32(b.PcLookupTblValues.RowNum.ToString()) } into b_join
                                     from b in b_join.DefaultIfEmpty()
                                     where
                           a.Company == LookupCompany &&
                           a.LookupTblID == LookupTable &&
                           a.RowNum == b.PcLookupTblValues.RowNum &&
                           (a.ColName == "MinValue"

Open in new window

0
Free Tool: Site Down Detector
LVL 9
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I have a linq query (I am new to this)... it is returning a list of row numbers that are of type int in the database.

Here is the query:
var query = from A in (
	(from PcLookupTblValues in Db.PcLookupTblValues
	where
	  PcLookupTblValues.Company == "DD" &&
	  PcLookupTblValues.LookupTblID == "Price" &&
	  (PcLookupTblValues.ColName == "PartNum" &&
	  PcLookupTblValues.DataValue == "107")
	select new {
	  PcLookupTblValues
	}))
select new {
  A.PcLookupTblValues.RowNum
}

Open in new window


I need to take this list of rows and go through each one finding which row I want to use using another Linq query.

How would I get these into a list and traverse through this list using linq?
0
I am trying to run json linq query in Visual Studio 2008. I am getting the error :

select is not a member of newtonsoft.json.linq.array

Below is my code

Dim APIURL As String = "https://mydomain/api/v1/enrollments/search?id=12345"
            Dim req As WebRequest = WebRequest.Create(APIURL)
            req.ContentType = "application/json; charset=utf-8"
            req.Credentials = New System.Net.NetworkCredential("xyz", "123")
            req.Method = WebRequestMethods.Http.Get

            Dim text As String = ""
            Dim dt As DataTable = New DataTable
            Dim res As Stream = req.GetResponse().GetResponseStream
            Dim reader As New StreamReader(res)
            Dim response As String = reader.ReadToEnd()

            reader.Close()
            res.Close()

              Dim parsedObject = JObject.Parse(response)

            Dim docs = JArray.FromObject(parsedObject("enrollments")).Select(Function(x) x.ToObject(Of jSonClass.Enrollment)()) 'Error here
EE_json.txt
0
I have this code

public ActionResult GRIDPRINTS_Read(int woid, [DataSourceRequest]DataSourceRequest request)
        {
            IQueryable<GRIDPRINTS> gridprints = db.GRIDPRINTS;
            DataSourceResult result = gridprints.ToDataSourceResult(request, c => new GRIDPRINTS
            {
                WOID = c.WOID,
                GRIDPRTID = c.GRIDPRTID,
                GRIDID = c.GRIDID,
                MAPNAME = c.MAPNAME,
                SCALE = c.SCALE,
                PAGENUMBER = c.PAGENUMBER,
                ERRORS = c.ERRORS,
                STATUS = c.STATUS,
                NOTIFICATION = c.NOTIFICATION
            });

            return Json(result, JsonRequestBehavior.AllowGet);
        }

Open in new window


IT works fine Except I want to pass the woid to a where clause in the results.  So I added this line

.where(c.WOID==woid)    

public ActionResult GRIDPRINTS_Read(int woid, [DataSourceRequest]DataSourceRequest request)
        {
            IQueryable<GRIDPRINTS> gridprints = db.GRIDPRINTS;
            DataSourceResult result = gridprints.ToDataSourceResult(request, c => new GRIDPRINTS
            {
                WOID = c.WOID,
                GRIDPRTID = c.GRIDPRTID,
                GRIDID = c.GRIDID,
                MAPNAME = c.MAPNAME,
                SCALE = c.SCALE,
                PAGENUMBER = c.PAGENUMBER,
                ERRORS = c.ERRORS,
                STATUS = c.STATUS,
                NOTIFICATION = c.NOTIFICATION

             .where(c.WOID==woid)   

            });

            return Json(result, JsonRequestBehavior.AllowGet);
        }

Open in new window


It is failing with unknown method "where of string"  I am sure it is something simple stupid but after an hour of trying everything I am turning to the experts.
0
Below codes is to call Twilio API and get the sms historical conversation for one phone no. However, it takes over 15 seconds and the total records is actually just 5 conversation.

Have any experts worked with Twilio in the past and know another way to get SMS conversation in a faster mode?
Thanks,



TwilioClient.Init(accountSid, authToken);
            var messages2 = MessageResource.Read().Where(x => x.From.ToString() == fromPhoneNo);
            var messages3 = MessageResource.Read().Where(y => y.To == fromPhoneNo);
            var all = messages2.Concat(messages3).OrderByDescending(z => z.DateCreated);

Open in new window

0
i have an scenario where i have to compare  live data from the database to the data in the customer file that we get every night and send only the changes between the two.

i am trying to create a join in LINQ where i need to join two columns, customer and status to that of the file.
if its the same customer and same status but all the other columns are different then write it as changed customer but if its the same customer and different status then i would like to update that customer record to a 4 which means removed customer. this is my linq code i am not sure how to do a join on multiple columns and how to do an update.

i would like to join customers and status on the below code

     DataTable tblSamebutotherchanges = (from r in FirstDataTable.AsEnumerable() 
                                                join s in SecondDataTable.AsEnumerable()
                                                on r.Field<string>("Customer") equals s.Field<string>("Customer")
                                                where r.Field<string>("STATUS").Trim() == s.Field<string>("STATUS").Trim() || r.Field<string>("Name").Trim() != s.Field<string>("Name").Trim() || r.Field<string>("ADDRESS").ToUpper().Trim() != s.Field<string>("ADDRESS").ToUpper().Trim() || r.Field<string>("ADDRESS 2").Trim() != s.Field<string>("ADDRESS 2").Trim() || r.Field<string>("CITY").ToUpper().Trim() != s.Field<string>("CITY").ToUpper().Trim() || r.Field<string>("STATE").Trim() != 

Open in new window

0
Hi Experts,
I need help with a 'System.ObjectDisposedException' error I am getting in my C#.net Mvc.Net application.
I have posted my code below.

Code where I retrieve data from the database
private static List<InboundReject> getRejects()
{
    using (Utilities.RejectLetter db = new Utilities.RejectLetter())
    {

        var _rejectLetter = from m in db.InboundRejects
                            join c in db.InboundManifests on m.InboundManifestID equals c.InboundManifestID
                            where m.LetterPrintDate == null
                            select m;

        return _rejectLetter.ToList();
    }
}

Open in new window


Code where I attempt to use the data retrieved from the database
NOTE: the last statement reject.InboundManifest.Market.ToString() is what is throwing the error.
List<InboundReject> Rejects = getRejects();
foreach (InboundReject reject in Rejects)
{
    generateLetters(
        reject.DCN.ToString(), 
        reject.Description.ToString(),
        reject.BillingProviderName.ToString(),
        reject.BillingProviderAddress.ToString(),
        reject.BillingProviderCity.ToString(),
        reject.BillingProviderState.ToString(),
        reject.BillingProviderZip.ToString(),
        reject.EDOS.ToString(),
        reject.TotalCharge.ToString(),
        reject.PatientLName.ToString(),
        reject.PatientFName.ToString(),
        reject.InsuredID.ToString(),
        reject.PatientAccountNumber.ToString(),
        reject.InboundManifest.Market.ToString());
}

Open in new window


Thank you in advance for your help,
mrotor
0

LINQ Query

508

Solutions

379

Contributors

Language Integrated Query (LINQ) is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages, although ports exist for Java, PHP, JavaScript and ActionScript. LINQ extends the language by the addition of query expressions, which are akin to SQL statements, and can be used to conveniently extract and process data from arrays, enumerable classes, XML documents, relational databases, and third-party data sources.

Top Experts In
LINQ Query
<
Monthly
>