talesfromtheonion.blogspot.com
Tales From the Onion: Implementing View Presenter With ASMX Web Services
http://talesfromtheonion.blogspot.com/2008/10/implementing-view-presenter-with-asmx.html
Tales From the Onion. Friday, October 17, 2008. Implementing View Presenter With ASMX Web Services. Using System.Collections.Generic;. Using System.Text;. Using Microsoft.Practices.CompositeWeb;. Namespace Tales.From.The.Onion.CompositeWeb. WebService : System.Web.Services.WebService. Using System.Web;. Using System.Collections;. Using System.Web.Services;. Using System.Web.Services.Protocols;. Using Microsoft.Practices.CompositeWeb;. WebService(Namespace = "http:/ tempuri.org/")]. Presenter = value;.
talesfromtheonion.blogspot.com
Tales From the Onion: Visual Studio 2008 Install Woes
http://talesfromtheonion.blogspot.com/2008/08/visual-studio-2008-install-woes.html
Tales From the Onion. Friday, August 1, 2008. Visual Studio 2008 Install Woes. I was recenlty attempting to install Visual Studio 2008 on a new virtual machine when I ran into the following error:. Setup has encountered a problem while trying to copy: F: setup VSSetupWatson DW20.exe. To mount the ISO image. I was mounting the ISO image using Magic ISO. So, I went ahead and downloaded the daemon tools lite, mounted the ISO, and lo and behold, I had now successfully installed Visual Studio 2008!
talesfromtheonion.blogspot.com
Tales From the Onion: May 2009
http://talesfromtheonion.blogspot.com/2009_05_01_archive.html
Tales From the Onion. Friday, May 1, 2009. Extending Object To Generate Xml. Internal static string ToXml t ( T input ). XmlSerializer xs = new XmlSerializer( input.GetType );. XmlSerializerNamespaces xsn = new XmlSerializerNamespaces ;. XsnAdd( string.Empty, string.Empty );. String xml = null;. Using ( StringWriter sw = new StringWriter ). XsSerialize( sw, input, xsn );. Xml = sw.ToString ;. XmlDocument doc = new XmlDocument ;. DocLoadXml( xml );. Return doc.DocumentElement.OuterXml;.
talesfromtheonion.blogspot.com
Tales From the Onion: Extending Object To Generate Xml
http://talesfromtheonion.blogspot.com/2009/05/extending-object-to-generate-xml.html
Tales From the Onion. Friday, May 1, 2009. Extending Object To Generate Xml. Internal static string ToXml t ( T input ). XmlSerializer xs = new XmlSerializer( input.GetType );. XmlSerializerNamespaces xsn = new XmlSerializerNamespaces ;. XsnAdd( string.Empty, string.Empty );. String xml = null;. Using ( StringWriter sw = new StringWriter ). XsSerialize( sw, input, xsn );. Xml = sw.ToString ;. XmlDocument doc = new XmlDocument ;. DocLoadXml( xml );. Return doc.DocumentElement.OuterXml;.
talesfromtheonion.blogspot.com
Tales From the Onion: SQL Server Identity Insert Without Values
http://talesfromtheonion.blogspot.com/2010/08/sql-server-identity-insert-without.html
Tales From the Onion. Thursday, August 19, 2010. SQL Server Identity Insert Without Values. CREATE TABLE dbo.ShadowTable. NextKey INT IDENTITY(1,1) NOT NULL. INSERT INTO dbo.ShadowTable. But I got the following error message:. Msg 102, Level 15, State 1, Line 1. Incorrect syntax near 'ShadowTable'. This was an interesting problem to have. I had never needed to do anything like this before, and it seemed like such a simple thing to do. So I did some research, and I finally found this. Simple template....
talesfromtheonion.blogspot.com
Tales From the Onion: August 2010
http://talesfromtheonion.blogspot.com/2010_08_01_archive.html
Tales From the Onion. Thursday, August 19, 2010. SQL Server Identity Insert Without Values. CREATE TABLE dbo.ShadowTable. NextKey INT IDENTITY(1,1) NOT NULL. INSERT INTO dbo.ShadowTable. But I got the following error message:. Msg 102, Level 15, State 1, Line 1. Incorrect syntax near 'ShadowTable'. This was an interesting problem to have. I had never needed to do anything like this before, and it seemed like such a simple thing to do. So I did some research, and I finally found this.
talesfromtheonion.blogspot.com
Tales From the Onion: Passing Anonymous Types as Parameters
http://talesfromtheonion.blogspot.com/2010/05/passing-anonymous-types-as-parameters.html
Tales From the Onion. Friday, May 28, 2010. Passing Anonymous Types as Parameters. A while back, I had a scenario where I wanted to pass anonymous types from method to method as parameters. Using the 3.5 .Net Framework, the only way I could think to do this was passing the anonymous type as an object and using reflection to get at any of the properties. So, assuming that I have an Entity Model for AdventureWorks, I could do something that looks like this:. Using (var context = new AdventureWorksContext().
talesfromtheonion.blogspot.com
Tales From the Onion: July 2008
http://talesfromtheonion.blogspot.com/2008_07_01_archive.html
Tales From the Onion. Tuesday, July 22, 2008. I Figured, Eh, Why Not? I looked around and I realized everyone else had a blog, so why not me? I've been developing applications in one capacity or another for almost 8 years now, and during that time I feel like I've learned a thing or two. I think it's time that started to share some of the knowledge that I have learned in the past 8 years. I started out writing COBOL code on an IBM RS6000 running AIX. Subscribe to: Posts (Atom). I am currently employed at...
talesfromtheonion.blogspot.com
Tales From the Onion: May 2010
http://talesfromtheonion.blogspot.com/2010_05_01_archive.html
Tales From the Onion. Friday, May 28, 2010. Passing Anonymous Types as Parameters. A while back, I had a scenario where I wanted to pass anonymous types from method to method as parameters. Using the 3.5 .Net Framework, the only way I could think to do this was passing the anonymous type as an object and using reflection to get at any of the properties. So, assuming that I have an Entity Model for AdventureWorks, I could do something that looks like this:. Using (var context = new AdventureWorksContext().
talesfromtheonion.blogspot.com
Tales From the Onion: August 2008
http://talesfromtheonion.blogspot.com/2008_08_01_archive.html
Tales From the Onion. Friday, August 1, 2008. Visual Studio 2008 Install Woes. I was recenlty attempting to install Visual Studio 2008 on a new virtual machine when I ran into the following error:. Setup has encountered a problem while trying to copy: F: setup VSSetupWatson DW20.exe. To mount the ISO image. I was mounting the ISO image using Magic ISO. So, I went ahead and downloaded the daemon tools lite, mounted the ISO, and lo and behold, I had now successfully installed Visual Studio 2008!