multiple-conditions

XPATH Multiple Element Filters

I have the following sample XML structure: <SavingAccounts> <SavingAccount> <ServiceOnline>yes</ServiceOnline> <ServiceViaPhone>no</ServiceViaPhone> </SavingAccount> <SavingAccount> <ServiceOnline>no</ServiceOnline> <ServiceViaPhone>yes</ServiceViaPhone> </SavingAccount> </SavingAccounts> Wh...

How to delete multiple records in linq with multiple conditions?

How to delete multiple records in linq with multiple conditions? ...

Join tables multiple conditions - compare dates - Linq

I'm trying to do a join on two tables based on multiple conditions, the problem is I'm not able to compare the date fields. The date is stored in datetime format in DB and I want all the records on a particular date, when I do this in as shown in the code below, I get this exception .. Method 'System.String ToShortDateString()' has no s...

LINQ to EF left join with multiple condition

I am trying to replicate the following SQL using LINQ to EF but with no luck. select * from Role left join QueueAccess on Role.RoleId = QueueAccess.RoleId and queueId = 361 Here's what I've tried. var myAccess = (from role in entity.Role.Include(p => p.QueueAccess) join qa in entity.QueueAccess on new { rID = role.RoleId, qID = queue...

Building Active Record Conditions in an array - private method 'scan' called error

Hi, I'm attempting to build a set of conditions dynamically using an array as suggested in the first answer here: http://stackoverflow.com/questions/1658990/one-or-more-params-in-model-find-conditions-with-ruby-on-rails. However I seem to be doing something incorrectly and I'm not sure if what I'm trying is fundamentally unsound or if I...

how to include multiple if statement conditions in jQuery

I have an if statement that needs to look like this: UPDATE $("input#textbox").keypress(function(e){ key==e.which; if($("input#textbox").length <=7 && (key===13 || $("div#search-button").click())){ /////SOME FUNCTION//// }; }); I'm trying to execute the "SOME FUNCTION" area only if the input length is <=7 and eith...

LINQ Joining in c# with multiple conditions

Hi Following query is not working is there any problem with it? var possibleSegments = from epl in eventPotentialLegs join sd in segmentDurations on new { epl.ITARequestID, epl.ITASliceNumber, epl.DepartAirportAfter, epl.AirportId_Origin, epl.AirportId_De...