代码改变世界

JQuery Mobile 1.0 Released, Gets Mixed Reaction

2011-11-24 09:30 by 无名365, 170 阅读, 0 推荐, 收藏, 编辑
摘要:From http://www.infoq.com/news/2011/11/jquery-mobile-1JQuery Mobile 1.0 has been released and is available for download. The framework built on JQuery and JQuery UI supports all major mobile, tablet, e-reader and even desktop platforms. Using tools like PhoneGap, you can even transform JQuery Mobile 阅读全文

Interceptor in Unity and Policy Injection in Unity

2011-11-22 14:12 by 无名365, 199 阅读, 0 推荐, 收藏, 编辑
摘要:MSDN – Aspect-Oriented Programming, Interception and Unity 2.0MSDN – Interceptors in UnityMSDN – Policy Injection in Unity 阅读全文

Configuring Unity Container with Policy Injection Configuration

2011-11-22 13:45 by 无名365, 223 阅读, 0 推荐, 收藏, 编辑
摘要:Recently while preparing a presentation on Policy Injection Application block integration with Unity, I struggled with configuring the unity container to understand for PIAB configuration. Hence, thought of writing it here. This blog post talks about, How to configure Unity container to understand P 阅读全文

Unity Configuration Node

2011-11-22 09:54 by 无名365, 494 阅读, 0 推荐, 收藏, 编辑
摘要:在本文中,将研究Unity 配置文件的格式、配置的读取、通过示例说明实例的获取。1. Unity 配置文件的完整格式<?xml version="1.0" encoding="utf-8" ?> <configuration><configSections><section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,Microsoft.Practices.U 阅读全文

Unity Configuration from Separate Configuration File

2011-11-22 09:42 by 无名365, 735 阅读, 0 推荐, 收藏, 编辑
摘要:Imentioned on Twitter the other day that if you have to configure Unity via a configuration file, you probably want to do it in a separate configuration file. Personally I think this is a best practice when using any of the Application Blocks in Enterprise Library, too, but I realize the experience 阅读全文

IoC and Unity - Configuration

2011-11-22 09:33 by 无名365, 363 阅读, 0 推荐, 收藏, 编辑
摘要:In my previous post about Unity and IoC containers, I made note of some changes in the latest drop of the Unity Application Block. As Grigori Melnik, the PM of the Unity and Enterprise Library team noted, Unity should be released in its final form on April 7th, so stay tuned. In the mean time, the l 阅读全文

Objects and the Art of Data Modeling

2011-11-18 14:08 by 无名365, 216 阅读, 0 推荐, 收藏, 编辑
摘要:From http://msdn.microsoft.com/en-us/magazine/hh456393.aspxMany of today’s apps are built around a single data model, typically persisted to a data store via an object-relational mapper (ORM) tool. But sometimes—for several different reasons—you may need more flexibility, which requires multiple mod 阅读全文

AppFabric Cache - Cache Cluster

2011-11-18 11:20 by 无名365, 415 阅读, 0 推荐, 收藏, 编辑
摘要:Windows Server AppFabric Wiki:http://social.technet.microsoft.com/wiki/contents/articles/windows-server-appfabric.aspxDataCache class:http://msdn.microsoft.com/en-us/library/microsoft.applicationserver.caching.datacache_members(v=WS.10).aspxCache service:http://msdn.microsoft.com/en-us/library/windo 阅读全文

EF - How to delete an object without retrieving it

2011-11-16 16:54 by 无名365, 372 阅读, 0 推荐, 收藏, 编辑
摘要:ProblemThe most common way to delete an Entity in the Entity Framework is to pull the Entity you want to delete into the context and then delete it like this:// Find a category by ID by // TRIVIA: in .NET 4.0 you can use .Single() // which will throw if there is more than one match. var category = ( 阅读全文

LINQ to SQL Extension: Batch Deletion with Lambda Expression

2011-11-15 17:43 by 无名365, 269 阅读, 0 推荐, 收藏, 编辑
摘要:Batch deletion in the O/R Mapping frameworks is always depressing. We need to query all the entities we want to delete from the database, pass them to the DeleteOnSubmit or DeleteAllOnSubmit methods of DataContext, and finally invoke SubmitChanges to delete the records form database. In this case, w 阅读全文