20 February 2011 0 Comments

TechEd Middle East 2011 : encore quelques places !

et un bonus ! L’événement IT de la région Middle East Affrica, Tech Ed Middle East se tiendra du 8 au 11 mars 2011 à Dubai ( plus de détail ici ).

22 March 2010 0 Comments

Using the Windows Identity Foundation SDK with Visual Studio 2010 RC

There are some known issues with using the WIF SDK on VS 2010 RC that do not exist with VS 2008. When VS 2010 is released, we expect to refresh the SDK to resolve these problems, but in the meantime, we have some simple guidance for using the SDK with VS 2010. Request Validation The difference in behavior stems from changes made to the .NET 4.0 runtime with respect to validating user input received by ASP.NET web forms.

8 March 2010 0 Comments

How to Create a Powershell 2.0 Module and Cmdlet with Visual Studio 2010 (Screencast included)

This is one of those tasks I need to repeat every now and then and always forget the exact steps. So in the interest of sharing, I’ve written this post to demonstrate how to get started building a very simple module and cmdlet with C# and Visual Studio.

14 July 2009 0 Comments

Visual Studio 2010 EF4 新機能 Model Defined Functions (MDF)

こんにちは、部内は ReMIX そして Tech·Ed モードになっています。 ReMIX で私は「 UX コンシェルジュ」というブースでアテンド予定ですので、お時間あれば立ち寄って頂ければと思います。   今日は EF4 で機能追加される Model Defined Functions (MDF) をご紹介します。 Model Defined Functions (MDF) は .NET Framework 4.0 における新機能です。機能名から予測できるとおり概念モデル (CSDL) に関数を定義することができます。定義した関数には Entity SQL や LINQ to Entities でアクセスすることが可能です。 MDF は例えば、人の年齢計算のような共通で関数化しておくと便利なものに適用するものです。   では実際の実装方法を確認してみましょう。 関数を定義するために、 CSDL に次のような <Function> 要素を持つ XML を記述する必要があります。 VS デザイナで edmx を作成した場合は、 edmx を XML エディターで開いて <ConceptualModels> 要素の子要素である < Schema> 配下の任意の場所に記述することになります。 < Function Name = ” GetAge ” ReturnType = ” Edm.Int32 ” > < Parameter Name = ” Employees ” Type = ” NorthwindModel.Employees ” /> < DefiningExpression >       Edm.DiffYears(Employees.BirthDate, Edm.CurrentDateTime())   </ DefiningExpression > </ Function > XML を見ると概ね、何がしたいのかご理解頂けると思います。尚、 DefiningExpression には EntitySQL を指定します。 詳細は下記の msdn ドキュメント(英語)をご覧ください。 Conceptual Model Functions (Entity Data Model)   上記定義を行うことで次のように Entity SQL 式から GetAge 関数を呼び出すことが可能です。当然、 SQL Server など固有のデータベースには依存しない実装になります。 using ( EntityConnection con = new EntityConnection ( “Name=NorthwindEntities” )) { con Open. (); EntityCommand cmd = con.CreateCommand(); cmd.CommandText = “SELECT VALUE p from NorthwindEntities.Employees as p WHERE NorthwindModel.GetAge(p) > 60″ ; EntityDataReader edr = cmd.ExecuteReader( CommandBehavior .SequentialAccess);   また、 LINQ to Entities を用いて GetAge 関数の呼び出しを行う場合、事前に Stub メソッドを定義する必要があります。 [ EdmFunction ( "NorthwindModel" , "GetAge" )] public static int newGetAge( Employees e) { throw new NotSupportedException (); } ご覧のとおり、 System.Data.Objects.DataClasses.EdmFunction 属性に先ほど CSDL に定義した Function 名と名前空間が設定されています。実行時には Stub がそのまま呼び出されるわけではなく、 CSDL の Function が実行されるよう、メソッドが生成されることになります。 これで、 LINQ to Entities を用いて MDF を呼び出すことが可能です。 using ( NorthwindEntities db = new NorthwindEntities ()) {    var es = from e in db.Employees           where newGetAge(e) > 60           select e; } 詳細は下記の msdn ドキュメント(英語)をご覧ください。 How to: Call Model-Defined Functions in Queries (LINQ to Entities)   ちょっとパフォーマンスが心配ですが、うまく使うと便利な機能だと思います。

14 July 2009 0 Comments

I nomi ufficali di “Geneva”

Ieri durante la WPC – Worldwide Partner Conference – di New Orleans  (da non confondere con la nostrana WPC – Windows Professional Conference –) sono stati svelati i nomi ufficiali della suite “Geneva” come riportato dal sito di IDentity Management su MSDN e da Vittorio Bertocci . Quindi da ieri abbiamo : Geneva Server diventa Active Directory Federation Services (ADFS).

1 June 2009 0 Comments

.Net Performance Survey

The CLR performance team is running a survey to get your feedback about what to focus on for performance in the .Net framework. This includes performance in the framework itself as well as performance profiling, optimization, and tuning for the applications that you write. If you have any WCF performance feedback you can always send it to me even if this survey later closes and I’ll direct it to the right people

28 May 2009 0 Comments

Visual Stduio 2010 ベータ1に対応した DSL Tools が公開されています

Visual Studio 2010 ベータ1 が公開されてから、このベータに対応した DSL Tools も公開されました。必要になるものは、VS SDK と DSL SDKの2つになります。 Visual Studio 2010 Beta1 SDK Visual Studio 2010 DSL SDK Beta1 今回の DSL Toolsとしては、 Visual Studio SDKとは分離しての提供になっています。ドキュメント類は、上記のコードギャラリより入手することができます。新しい言語用のテンプレートとして、Windows FormsとWPFのMinimal Languageが含まれています。これは、作成したモデルデザイナの描画方法が、Windows FormsはGridを使った表形式、WPFは多分リストボックスを使った一覧形式になっています。つまり、ダイアグラム要素を定義しないモデルデザイナになっています。 Visual Studio 2008からの移行については、移行ツールが提供されています。この移行ツールはインストールしたフォルダにマイグレーション・ガイドと一緒に含まれています。もしくは、冒頭のコードギャラリのサイトからもダウンロードすることができます。 PS. .NET Framework 4.0 ベータ1に対応したIronRubyのバイナリが codeplexのサイトで公開されています。

5 May 2009 0 Comments

Released: Windows SDK for Windows 7 and .NET Framework 3.5 SP1: RC

The Windows SDK for Windows 7 and .NET Framework 3.5 SP1: Release Candidate has been released in both ISO and Web Setup format.  Web setup allows you to install a specific subset of the SDK you select without having to download the entire SDK; whereas the DVD ISO setup allows you to download the entire SDK to install later.  What’s New: The following is a small sampling of what’s new or updated in this SDK.

12 April 2009 0 Comments

.NET Community Conference

.NET 관련 커뮤니티들이 한데 모여서 컨퍼런스를 한다고 합니다. 사전 등록은 http://www.devdcc.net/Program/Default.aspx 에서 할 수 있습니다

17 February 2009 0 Comments

Understanding Installation Failures

More good articles on framework installation issues by Aaron Stebner are available than the ones related to the verification and cleanup tools I posted about last week. Here’s a quick selection of a few of the articles about WCF.

13 February 2009 0 Comments

Visual Studio 2010 and .NET Framework 4.0 Adoption

Visual Studio 2010 and .NET Framework 4.0 Adoption By Doug Holland (Intel)

2 February 2009 0 Comments

Framework Design Guidelines: Overriding Object.ToString()

Continuing in our weekly blog post series that highlights a few of the new additions to the Framework Design Guidelines 2 nd edition ..