Skip to content

Instantly share code, notes, and snippets.

View leblancmeneses's full-sized avatar
🏠
Working from home

Leblanc Meneses leblancmeneses

🏠
Working from home
View GitHub Profile
@leblancmeneses
leblancmeneses / Automapper EF IQueryable
Last active December 21, 2015 00:59
Automapper EF IQueryable
working expression.ToString();
value(System.Data.Objects.ObjectQuery`1[Host.MockDB.CaseInformation]).MergeAs(AppendOnly).Select(x => new CaseInformationViewModel() {Id = x.Id, CaseNumber = x.CaseNumber, Title = x.ShortTitle, CaseType = IIF((x.CaseTypeDropDown == null), String.Empty, x.CaseTypeDropDown.Name), CaseType_Id = x.CaseTypeDropDown_Id, Category = IIF((x.CategoryDropDown == null), String.Empty, x.CategoryDropDown.Name), Category_Id = x.CategoryDropDown_Id, FilingAttorney = IIF((x.FilingAttorneyDropDown == null), String.Empty, x.FilingAttorneyDropDown.Name), FilingAttorney_Id = x.FilingAttorneyDropDown_Id, PaymentAccount = IIF((x.PaymentAccountDropDown == null), String.Empty, x.PaymentAccountDropDown.Name), PaymentAccount_Id = x.PaymentAccountDropDown_Id, Location = IIF((x.LocationDropDown == null), String.Empty, x.LocationDropDown.Name), Location_Id = x.LocationDropDown_Id, LowerCourt = IIF((x.LowerCourtDropDown == null), String.Empty, x.LowerCourtDropDown.Name), LowerCourt_Id = x.LowerCourtDropDown_
@leblancmeneses
leblancmeneses / gist:4159277
Created November 28, 2012 05:47
forum - distributor without profile data input queue not created
public class EndpointConfig : IConfigureThisEndpoint, IWantCustomInitialization, AsA_Server
{
public void Init()
{
Configure.With()
.DefineEndpointName(ConfigurationManager.AppSettings["NServiceBus.Instance"])
.DefaultBuilder()
.XmlSerializer()
.RunTimeoutManager()
.RunDistributorWithNoWorkerOnItsEndpoint()
@leblancmeneses
leblancmeneses / EndpointConfig.cs
Created November 27, 2012 19:03
one set of distributor binaries for 3.3.2 to be used with xdt
public class EndpointConfig : IConfigureThisEndpoint, IWantCustomInitialization, AsA_Server
{
public void Init()
{
Configure.With()
.DefineEndpointName(ConfigurationManager.AppSettings["NServiceBus.Instance"])
.DefaultBuilder()
.XmlSerializer()
.RunDistributorWithNoWorkerOnItsEndpoint();
}