<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>.NET</title>
        <link>http://blogs.ugidotnet.org/DiegoL/category/.NET.aspx</link>
        <description>Tutto quello che riguarda il mondo .NET</description>
        <language>it-IT</language>
        <copyright>Diego Lazzarino</copyright>
        <generator>Subtext Version 2.6.0.0</generator>
        <item>
            <title>Visual Studio Achievements</title>
            <link>http://blogs.ugidotnet.org/DiegoL/archive/2012/01/19/visual-studio-achievements.aspx</link>
            <description>Visual Studio Achievements è l’ultima intuizione di Microsoft per incoraggiare i programmatori a sviluppare in C# o Visual Basic. L’estensione è gratuita per Visual Studio, l’ambiente di sviluppo distribuito da Microsoft: applica il concetto della cd. “gamification” alla programmazione. In pratica, la trasforma in un gioco a premi.Mentre si scrive il sorgente per un’applicazione in C# o Visual Basic, Visual Studio Achievements analizza il codice e attribuisce al programmatore un badge sulla base delle funzioni utilizzate. L’avvenuta acquisizione dei badge può essere mostrata su Microsoft Developer Network (MSDN) e sui social network — ad esempio, su Facebook.Prescindendo dall’aspetto ludico, Visual Studio Achievements può essere un riferimento attendibile per certificare le proprie capacità in merito alla programmazione in C# e Visual Basic. Mozilla, infatti, utilizza lo stesso meccanismo per l’attribuzione di quelle competenze che non abbiano un sistema di certificazione tradizionale.Diego&lt;img src="http://blogs.ugidotnet.org/DiegoL/aggbug/100713.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Diego Lazzarino</dc:creator>
            <guid>http://blogs.ugidotnet.org/DiegoL/archive/2012/01/19/visual-studio-achievements.aspx</guid>
            <pubDate>Thu, 19 Jan 2012 12:09:19 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/DiegoL/archive/2012/01/19/visual-studio-achievements.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/DiegoL/comments/commentRss/100713.aspx</wfw:commentRss>
        </item>
        <item>
            <title>S#arp Architecture</title>
            <link>http://blogs.ugidotnet.org/DiegoL/archive/2009/04/16/sarp-architecture.aspx</link>
            <description>Pronounced "Sharp Architecture," this is a solid architectural foundation for rapidly building maintainable web applications leveraging the ASP.NET MVC framework with NHibernate. The primary advantage to be sought in using any architectural framework is to decrease the code one has to write while increasing the quality of the end product. A framework should enable developers to spend little time on infrastructure details while allowing them to focus their attentions on the domain and user experience. Accordingly, S#arp Architecture adheres to the following key principles: Focused on Domain Driven Design Loosely Coupled Preconfigured Infrastructure Open Ended Presentation The overall goal of this is to allow developers to worry less about application "plumbing" and to spend most of their time on adding value for the client by focusing on the business logic and developing a rich user experience. Good background material reading includes http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx. Although there are major infrastructural changes from this article in the current architecture, the general structure is very similar and the background reading is very helpful in understanding many of the ideas behind this architecture. S#arp Architecture documentation is included along side the current release. S#arp Architecture and the preceding article have been referenced in NHibernate in Action by Pierre Henri Kuate, Windows Developer Power Tools by James Avery and Pro LINQ Object Relational Mapping in C# 2008 by Vijay P. Mehta. Billy McCafferty Project homepage&lt;img src="http://blogs.ugidotnet.org/DiegoL/aggbug/95971.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Diego Lazzarino</dc:creator>
            <guid>http://blogs.ugidotnet.org/DiegoL/archive/2009/04/16/sarp-architecture.aspx</guid>
            <pubDate>Thu, 16 Apr 2009 10:54:59 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/DiegoL/archive/2009/04/16/sarp-architecture.aspx#feedback</comments>
            <slash:comments>14</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/DiegoL/comments/commentRss/95971.aspx</wfw:commentRss>
        </item>
        <item>
            <title>LINQPad - Editor interattivo di query LINQ</title>
            <link>http://blogs.ugidotnet.org/DiegoL/archive/2008/11/05/94525.aspx</link>
            <description>
			Tired of querying in antiquated SQL?
		
			Well, you don't have to!  LINQPad lets you interactively query SQL databases
			in a modern query language: LINQ.  Kiss goodbye to SQL Management
			Studio!
		
		
			LINQPad supports everything in C# 3.0 and Framework 3.5:
		LINQ to SQLLINQ to ObjectsLINQ to XML
		
			LINQPad is also a great way to learn LINQ: it comes preloaded with 200 examples
			from my book, C# 3.0 in a Nutshell. 
			There's no better way to experience the coolness of LINQ and functional programming.
		
			And LINQPad is more than just a LINQ query tool: it's a code snippet IDE.
			Instantly execute any C# 3 or VB 9 expression or statement block!
		
			Best of all, LINQPad is free and needs no installation: just download and
			run.  The executable is only 2MB and is self-updating.
		
		
			
		
			
				www.linqpad.net

Linq, Query&lt;img src="http://blogs.ugidotnet.org/DiegoL/aggbug/94525.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Diego Lazzarino</dc:creator>
            <guid>http://blogs.ugidotnet.org/DiegoL/archive/2008/11/05/94525.aspx</guid>
            <pubDate>Wed, 05 Nov 2008 13:40:32 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/DiegoL/archive/2008/11/05/94525.aspx#feedback</comments>
            <slash:comments>13</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/DiegoL/comments/commentRss/94525.aspx</wfw:commentRss>
        </item>
        <item>
            <title>NHibernate Mapping: verificare lo schema del database</title>
            <link>http://blogs.ugidotnet.org/DiegoL/archive/2008/04/03/92043.aspx</link>
            <description>Snippet per verificare che lo schema del database corrisponda a quello descritto dal nostro Domain Model.



    
        
            [Test] 
        
        
            public void AllNHibernateMappingAreOkay() 
        
        
            { 
        
        
               ISessionManager sessionManager = IoC.Resolve&amp;lt;ISessionManager&amp;gt;(); 
        
        
             
        
        
               using (ISession session = sessionManager.OpenSession()) 
        
        
               { 
        
        
                   IDictionary allClassMetadata = session.SessionFactory.GetAllClassMetadata(); 
        
        
             
        
        
                   foreach (DictionaryEntry entry in allClassMetadata) 
        
        
                   { 
        
        
                       session.CreateCriteria((Type) entry.Key) 
        
        
             
        
        
                            .SetMaxResults(0).List(); 
        
        
                   } 
        
        
               } 
        
        
            }  
        
    



Fonte Ayende&lt;img src="http://blogs.ugidotnet.org/DiegoL/aggbug/92043.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Diego Lazzarino</dc:creator>
            <guid>http://blogs.ugidotnet.org/DiegoL/archive/2008/04/03/92043.aspx</guid>
            <pubDate>Thu, 03 Apr 2008 18:17:32 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/DiegoL/archive/2008/04/03/92043.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/DiegoL/comments/commentRss/92043.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Agguingere una descrizione agli elementi di un Enum</title>
            <link>http://blogs.ugidotnet.org/DiegoL/archive/2007/11/22/89867.aspx</link>
            <description>Ieri mi è capitato di dover caricare gli elementi di un Enum in una lista, ma il nome di ogni elemento non era abbastanza "parlante".  Dopo qualche ricerca ho trovato il modo di aggiungere una descrizione agli elementi.Ecco qui l'esempio:    public enum MyEnumName    {        [Description("First Enum Item Description")] Item1 = 1,        [Description("Second Enum Item Description")] Item2,        [Description("Third Enum Item Description")] Item3    }Per recuperare le descrizioni e caricare la lista si sfrutta la reflection        public static string GetEnumDescription(Enum value)        {            FieldInfo fi = value.GetType().GetField(value.ToString());            DescriptionAttribute[] attributes =                  (DescriptionAttribute[])fi.GetCustomAttributes(                  typeof(DescriptionAttribute), false);            return (attributes.Length &amp;gt; 0) ? attributes[0].Description : value.ToString();        }Ultima cosa, richiamare la funzione:        	string item1Description = GetEnumDescription(MyEnumName.Item1)E' tutto :-)Powered by ScribeFire.&lt;img src="http://blogs.ugidotnet.org/DiegoL/aggbug/89867.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Diego Lazzarino</dc:creator>
            <guid>http://blogs.ugidotnet.org/DiegoL/archive/2007/11/22/89867.aspx</guid>
            <pubDate>Thu, 22 Nov 2007 11:01:33 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/DiegoL/archive/2007/11/22/89867.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/DiegoL/comments/commentRss/89867.aspx</wfw:commentRss>
        </item>
        <item>
            <title>GUID sequenziali in NHibernate</title>
            <link>http://blogs.ugidotnet.org/DiegoL/archive/2007/06/08/80742.aspx</link>
            <description>Ho appena letto l'articolo di Davide Mauri sull'utilizzo dei GUID nei database e, se proprio non ne possiamo fare a meno, viene consigliato l'uso di GUID sequenziali.Ho subito pensato a come poterli gestire con NHibernate, basta utilizzare guid.comb nel parametro class del generator.Per avere un'idea della differenza di performance tra GUID e SequentialGUID c'è un bell'articolo di Jimmy Nilsson.Anche questo me lo sono segnato... :-)&amp;nbsp;Powered by ScribeFire.&lt;img src="http://blogs.ugidotnet.org/DiegoL/aggbug/80742.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Diego Lazzarino</dc:creator>
            <guid>http://blogs.ugidotnet.org/DiegoL/archive/2007/06/08/80742.aspx</guid>
            <pubDate>Fri, 08 Jun 2007 10:31:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/DiegoL/archive/2007/06/08/80742.aspx#feedback</comments>
            <slash:comments>13</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/DiegoL/comments/commentRss/80742.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Enterprise Library 3.1 - Logging Local Timestamp</title>
            <link>http://blogs.ugidotnet.org/DiegoL/archive/2007/06/07/80673.aspx</link>
            <description>Per avere nei files di log sia il timestamp UTC/GMT che il local timestamp basta personalizzare il formatter utilizzando questa sintassi:&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&amp;nbsp;&amp;nbsp;&amp;nbsp; Local Timestamp:&amp;nbsp;&amp;nbsp; {timestamp(local)}&amp;nbsp;&amp;nbsp;&amp;nbsp; UTC/GMT Timestamp: {timestamp}&amp;nbsp;&amp;nbsp;&amp;nbsp; ...Powered by ScribeFire.&lt;img src="http://blogs.ugidotnet.org/DiegoL/aggbug/80673.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Diego Lazzarino</dc:creator>
            <guid>http://blogs.ugidotnet.org/DiegoL/archive/2007/06/07/80673.aspx</guid>
            <pubDate>Thu, 07 Jun 2007 17:57:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/DiegoL/archive/2007/06/07/80673.aspx#feedback</comments>
            <slash:comments>12</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/DiegoL/comments/commentRss/80673.aspx</wfw:commentRss>
        </item>
        <item>
            <title>OleDbType Enumeration vs. Microsoft Access Data Types</title>
            <link>http://blogs.ugidotnet.org/DiegoL/archive/2007/04/23/76302.aspx</link>
            <description>Me lo segno.... :-)&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
List of the Most Common Data Type Mappings
The following table lists the most common data types that are used in Microsoft Access and how these data types relate to the Microsoft .NET Framework data types and to the OleDbType enumeration. 





Access Type Name

Database Data Type

OLE DB Type

.NET Framework Type

Member Name


Text

VarWChar

DBTYPE_WSTR

System.String

OleDbType.VarWChar


Memo

LongVarWChar

DBTYPE_WSTR

System.String

OleDbType.LongVarWChar


Number: Byte

UnsignedTinyInt

DBTYPE_UI1

System.Byte

OleDbType.UnsignedTinyInt


Yes/No

Boolean

DBTYPE_BOOL

System.Boolean

OleDbType.Boolean


Date/Time

DateTime

DBTYPE_DATE

System.DateTime

OleDbType.Date


Currency

Decimal

DBTYPE_NUMERIC

System.Decimal

OleDbType.Numeric


Number: Decimal

Decimal

DBTYPE_NUMERIC

System.Decimal

OleDbType.Numeric


Number: Double

Double

DBTYPE_R8

System.Double

OleDbType.Double


Autonumber (Replication ID)

GUID

DBTYPE_GUID

System.Guid

OleDbType.Guid


Number: (Replication ID)

GUID

DBTYPE_GUID

System.Guid

OleDbType.Guid


Autonumber (Long Integer)

Integer

DBTYPE_I4

System.Int32

OleDbType.Integer


Number: (Long Integer)

Integer

DBTYPE_I4

System.Int32

OleDbType.Integer


OLE Object

LongVarBinary

DBTYPE_BYTES

Array of System.Byte

OleDbType.LongVarBinary


Number: Single

Single

DBTYPE_R4

System.Single

OleDbType.Single


Number: Integer

SmallInt

DBTYPE_I2

System.Int16

OleDbType.SmallInt


Binary

VarBinary*

DBTYPE_BYTES

Array of System.Byte

OleDbType.Binary


Hyperlink

VarWChar

DBTYPE_WSTR

System.String

OleDbType.VarWChar&lt;img src="http://blogs.ugidotnet.org/DiegoL/aggbug/76302.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Diego Lazzarino</dc:creator>
            <guid>http://blogs.ugidotnet.org/DiegoL/archive/2007/04/23/76302.aspx</guid>
            <pubDate>Mon, 23 Apr 2007 13:36:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/DiegoL/archive/2007/04/23/76302.aspx#feedback</comments>
            <slash:comments>11</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/DiegoL/comments/commentRss/76302.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>