Format:
Recent snippets for: biboyatienza
#region == hide first== // Arrange Console.WriteLine(DateTime.Now); int globalExportId = 1; var globlaExport = _service.GetGlobalExportById(globalExportId); Console.WriteLine(DateTime.Now); var employeeStatus = (from x in globlaExport.SelectedEmployeeStatuses select x.EmployeeStatus.Status); foreach (var item in employeeStatus) {
75 Views
no comments
employees = from employee in _exportContext.EmployeePersonalInformations.Where(x => employeeStatus.Contains(x.StatusCode) || employeeSubStatus.Contains(x.SubStatusId)) join sailingPeriod in _exportContext.EmployeeSailingPeriods.Where(x => (x.ServiceType.Equals(serviceType1) && ((x.ServiceFromDate >= StartDate1 && x.ServiceFromDate <= EndDate1) || (x.ServiceToDate >= StartDate1 && x.ServiceToDate <= EndDate1) || (StartDate1 >= x.ServiceFromDate && EndDate1 <= x.ServiceToDate))) || (x.ServiceType.Equals(serviceType2) && ((x.ServiceFromDate >= StartDate2 && x.ServiceFromDate <= EndDate2) || (x.ServiceToDate >= StartDate2 && x.ServiceToDate <= EndDate2) || (StartDate2 >= x.ServiceFromDate && EndDate2 <= x.ServiceToDate))) || (x.ServiceType.Equals(serviceType3) && ((x.ServiceFromDate >= StartDate3 && x.ServiceFromDate <= EndDate3) || (x.ServiceToDate >= StartDate3 && x.ServiceToDate <= EndDate3) || (StartDate3 >= x.ServiceFromDate && EndDate3 <= x.ServiceToDate))) ) on employee.EmployeeNumber equals sailingPeriod.EmployeeNumber join selectedVessel in _exportContext.SelectedVessels.Where(x => x.GlobalExportId.Equals(globalExportId)) on sailingPeriod.VesselCode equals selectedVessel.VesselCode where selectedVessel.VesselNationalities.Select(x => x.NationalityCode).Contains(employee.CountryCode)
86 Views
no comments
var x = _context.Database.SqlQuery<Company>("SELECT * FROM Companies").ToList();
218 Views
no comments
<html> <head> <script type="text/javascript"> var chldWnd; function OpenChild(){ chldWnd = window.open("http://www.google.com", "popup","height=190,width=190"); chldWnd.focus(); }
160 Views
no comments
using System; using System.Collections.Generic; using System.Xml.Linq; using FizzWare.NBuilder; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Tests.Reporting { [TestClass] public class DynamicXmlFormatting
163 Views
no comments
using System; using System.Collections.Generic; using FizzWare.NBuilder; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Tests.Reporting { [TestClass] public class DynamicTextFormatting {
174 Views
no comments
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Data.Objects; using System.Linq; using System.Linq.Expressions; using BusinessDomain.Entities; using Microsoft.VisualStudio.TestTools.UnitTesting;
963 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
