CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: biboyatienza
C#
#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)
{
by biboyatienza   August 21, 2011 @ 10:32pm
Tags: c#
75 Views
no comments
 
C#
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)
            
by biboyatienza   August 13, 2011 @ 3:30am
Tags: c#
86 Views
no comments
 
C#
var x = _context.Database.SqlQuery<Company>("SELECT * FROM Companies").ToList();
by biboyatienza   June 22, 2011 @ 2:19am
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();
  }
 
by biboyatienza   June 16, 2011 @ 11:47pm
160 Views
no comments
 
C#
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
 
C#
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
 
C#
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;
by biboyatienza   June 13, 2011 @ 9:22pm
963 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate