Servefault.com - Stories tagged with C#
5
votes

Writing object to object mapper: my mapper vs AutoMapper - Gunnar Peipman's ASP.NET blog

published 18 days, 12 hours, 17 minutes ago posted by gpeipmangpeipman 27 days, 9 hours, 7 minutes ago
Sunday, February 21, 2010 3:17:13 AM GMT Friday, February 12, 2010 6:27:16 AM GMT
As my object to object mapper is now almost completed and I am sure it is good idea to stay on LCG (Lightweight Code Generation) I can now compare the performance of my mapper to AutoMapper. (more)
category: Visual Studio | clicked: 0 | comment | | source: weblogs.asp.net
tags: .Net, C#, object to object mapping, performance
4
votes

Writing object to object mapper: first implementations

published 25 days, 21 hours, 54 minutes ago posted by gpeipmangpeipman 32 days, 3 hours, 5 minutes ago
Saturday, February 13, 2010 5:39:53 PM GMT Sunday, February 07, 2010 12:29:02 PM GMT
I wrote some object to object mapping code and introduced it in some of my previous postings about performance. As I received 22x performance raise when trying out different mapping methods it is now time to make my code nice. In this posting I will show you how I organized my code to classes. Yes, you can use my classes in your work if you like. (more)
category: ASP.NET | clicked: 0 | comment | | source: weblogs.asp.net
tags: .Net, C#, object to object mapping, performance
2
votes

Performance: Using LCG to copy property values of two objects

published 25 days, 21 hours, 54 minutes ago posted by gpeipmangpeipman 33 days, 21 hours, 12 minutes ago
Saturday, February 13, 2010 5:39:53 PM GMT Friday, February 05, 2010 6:22:23 PM GMT
Today I gave last performance boost to my property values copying mechanism. I would like to thank my readers Ron and David to remind me Lightweight Code Generation (LCG) and pointing me out aussie bloke blog entry Generic copy object using Lightweight Code Generation. In this posting I will show you last performance boost and put down a summary about my experiment this far. (more)
category: Visual Studio | clicked: 1 | comment | | source: weblogs.asp.net
tags: .Net, C#, lcg, performance
6
votes

Configuring MEF with Linq To Xml Part 2: Making MEF recomposition on the fly when the file is edited - Alex van Beek - blog community

published 40 days, 1 hour, 57 minutes ago posted by alexbalexb 49 days, 4 hours, 21 minutes ago
Saturday, January 30, 2010 1:37:12 PM GMT Thursday, January 21, 2010 11:13:24 AM GMT
In this post I’m going to show how you can make use of MEF’s recomposition features to recomposition on the fly when the content of the configuration XML file in which the exports are defined, is changed. (more)
category: Silverlight | clicked: 1 | comment | | source: blogs.infosupport.com
tags: .Net 4.0, C#, ExportProvider, FileSystemWatcher, Linq To XML, MEF, Silverlight 4
4
votes

.Net 4.0: Configuring MEF with Linq to Xml - Alex van Beek

published 48 days, 22 hours, 8 minutes ago posted by alexbalexb 55 days, 4 hours, 50 minutes ago
Thursday, January 21, 2010 5:25:58 PM GMT Friday, January 15, 2010 10:43:51 AM GMT
A much heard criticism of MEF is that the exports are configured with attributes, so if the exports need to be changed, recompilation of the application is required. In this post I'll show how to extend MEF using Linq to XML in such a way, that the exports can be configured in an external configuration file and the application no longer needs to be recompiled when the exports change. (more)
category: Architecture | clicked: 2 | comment | | source: blogs.infosupport.com
tags: .Net 4.0, C#, Linq To XML, MEF, Silverlight 4
3
votes

.Net Framework 4.0: string.IsNullOrWhiteSpace() method

published 133 days, 22 hours, 11 minutes ago posted by gpeipmangpeipman 137 days, 5 hours, 23 minutes ago
Wednesday, October 28, 2009 5:23:41 PM GMT Sunday, October 25, 2009 10:11:16 AM GMT
.Net Framework 4.0 Beta 2 has new IsNullOrWhiteSpace() method for strings generalizes IsNullOrEmpty() method to incluse also other white space besides empty string. In this posting I will show you simple example that illustrates how to use IsNullOrWhiteSpace() method. (more)
category: Visual Studio | clicked: 2 | comment | | source: weblogs.asp.net
tags: .Net Framework 4.0, C#
1
votes

Retina.NET support for Microsoft SQL Server 2008 - Andru's WebLog

posted by HostgatorHostgator 138 days, 12 hours, 12 minutes ago
Saturday, October 24, 2009 3:22:10 AM GMT
Retina.NET support for Microsoft SQL Server 2008 The latest version of Retina.NETm the open source ORM published on CodePlex has now explicit support for MS SQL 2008. The new DataStore now supports the new data types (DATETIME2, TIME, DATE, DATETIMEOFFSET) and the new FILESTREAM access modifier for BLOBs columns. Check it out at http://retina.codeplex.com and download the latests binaries or sources. (more)
category: Open Source | clicked: 0 | comment | | source: weblogs.asp.net
tags: C#, Open Source, Retina.Net, SQL Server 2008
1
votes

ASP.Net 3.5: A Beginner's Guide - William Sanders, Sanders William, PB - Books Buy ASP.Net 3.5: A Beginner's Guide India - Infibeam.com

posted by Webhost4lifeWebhost4life 152 days, 9 hours, 19 minutes ago
Saturday, October 10, 2009 6:15:31 AM GMT
ASP.Net 3.5: A Beginner's Guide Book Description Essential Skills Made Easy!In this book, ASP.NET and C# expert Bill Sanders teaches beginner developers and those new to ASP.NET 3.5 how to use Microsoft's latest version of ASP.NET, along with C# 3.0, the newest version of the programming language used to drive ASP.NET applications. ASP.NET 3.5: A Beginner's Guide provides the crucial step that takes a programmer from the client side of Internet programming to true server-side programming. William Sande... (more)
category: ASP.NET | clicked: 0 | comment | | source: www.infibeam.com
tags: ADO.NET, ASP.NET, ASP.NET 3.5, C#, SQL
4
votes

ASP.NET MVC Sample Application at www.ASP.net/MVC

published 151 days, 5 hours, 9 minutes ago posted by HostgatorHostgator 156 days, 5 hours, 25 minutes ago
Sunday, October 11, 2009 10:24:50 AM GMT Tuesday, October 06, 2009 10:08:52 AM GMT
ASP.NET MVC Sample Application at www.ASP.net/MVC We posted a complete Contact Manager sample ASP.NET MVC Application at the www.ASP.net/mvc website. The source code is available in both C# and VB.NET. The application is intentionally simple. The goal was to provide members of the ASP.NET community with an application that they could use to quickly learn how to build new applications with ASP.NET MVC. The Contact Manager application is an address book application. The application enables you to list, ... (more)
category: ASP.NET | clicked: 8 | comment | | source: stephenwalther.com
tags: ASP.NET, ASP.NET MVC, C#, VB.NET
4
votes

Meta-Me : Tip 36 – How to Construct by Query

published 164 days, 6 hours, 10 minutes ago posted by BlueHostBlueHost 164 days, 13 hours, 59 minutes ago
Monday, September 28, 2009 9:23:56 AM GMT Monday, September 28, 2009 1:35:24 AM GMT
Tip 36 – How to Construct by Query While writing my tips series and writing EF controllers for MVC I found that I regularly wanted to create and attach a stub entity. Unfortunately it isn’t quite that simple, you have to make sure the entity isn’t already attached first, otherwise you’ll see some nasty exceptions. To avoid these exceptions I often found myself having to write code like this: Person assignedTo = FindPersonInStateManager(ctx, p => p.ID == 5); if (assignedTo == null) {      a... (more)
category: SQL | clicked: 0 | comment | | source: blogs.msdn.com
tags: C#, EF, EF Internals, Entity Framework, entityframework, Expressions, Extension Methods, lambda, Tips, tricks
4
votes

Web 2.0 | Creating and consuming your first WCF service

published 164 days, 6 hours, 10 minutes ago posted by http://farooq-kaiser.myopenid.com/http://farooq-kaiser.myopenid.com/ 166 days, 1 hour, 29 minutes ago
Monday, September 28, 2009 9:23:56 AM GMT Saturday, September 26, 2009 2:05:21 PM GMT
In this article, i will examine how to create and consume a WCF service. WCF is next-generation programming platform and runtime system for building, configuring and deploying service-oriented applications. For more details please see here. Creating a WCF service I will create a stock service to demonstrate WCF service. To create a WCF service please follow these steps.Launch a visual studio 2008 Click on File �> new -> project then select WCF service application. It will create a WCF service applicati... (more)
category: Web Service | clicked: 8 | comment | | source: www.fairnet.com
tags: .Net, C#, WCF