from: http://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext(v=vs.103).aspxDbContextwrapsObjectContextand exposes the most commonly used features ofObjectContextby using simplified and more intuitive APIs. You can access the underlyingObjectContextwhenever you need to use features that    Read More
posted @ 2011-10-31 14:59
庚武
Views(1149)
Comments(0)
Diggs(0)
        
            
        
        
        
Parse (Database Engine)Parse converts the canonical string representation of ahierarchyidto ahierarchyidvalue.Parseis called implicitly when a conversion from a string type tohierarchyidoccurs. Acts as the opposite ofToString.Parse()is a static method.Syntax-- Transact-SQL syntaxhierarchyid::Parse (    Read More
posted @ 2011-10-31 10:24
庚武
Views(343)
Comments(0)
Diggs(0)
        
            
        
        
        
/*****************************************************///Create Class With Interface Dependencies#region//需要某实现某接口的具体实例UnityContainer container=new UnityContainer();container.RegisterType(ILogger,NullLogger>();Database datavase = container.Resolve<CustomDatabase>Database();#endregionCustomD    Read More
posted @ 2011-10-31 01:55
庚武
Views(281)
Comments(0)
Diggs(0)
        
            
        
        
        
Reflection Examples [C#]This example shows how to dynamically load assembly, how to create object instance, how to invoke method or how to get and set propertyvalue.Create instance from assembly that is in your project ReferencesThe following examples create instances of DateTime class from the Syst    Read More
posted @ 2011-10-31 01:04
庚武
Views(489)
Comments(0)
Diggs(0)
        
            
        
        
        
http://martinfowler.com/articles/injection.htmlInversion of ControlWhen these containers talk about how they are so useful because they implement "Inversion of Control" I end up very puzzled.Inversion of controlis a common characteristic of frameworks, so saying that these lightweight cont    Read More
posted @ 2011-10-31 00:55
庚武
Views(306)
Comments(0)
Diggs(0)
        
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号