Archive for the ‘Programming’ Category

Deploying a WCF Service on IIS

Wednesday, May 21st, 2008

Discovered that you can and should manually create a MyService.svc file in the root web folder.

Rename app.config to web.config

Manually copy your binaries from /bin/Debug or /bin/Release to /bin

Don’t forget to add <DataMember() _ above your public properties. Making them public is not enough.

replacing the private variable of public members with dependancy properties

Thursday, April 24th, 2008

Public StatusProperty As DependencyProperty = _
DependencyProperty.RegisterAttached(”Status”, GetType(String), GetType(Window))

Property Status() As String
Get
Return GetValue(StatusProperty)
End Get
Set(ByVal value As String)
SetValue(StatusProperty, value)
End Set
End Property

linq left outer join with visual basic and linqtosql

Thursday, April 24th, 2008

result = _
From master In dc.Masters _
Where (master.name.Contains(txtSearch.Text) _
Group Join detail In dc.details On master Equals detail.Master Into both = Group _
From b In both.DefaultIfEmpty _
Select New With {.master = master, .detail = If(master.Details.Count = 0, New Detail, b)}