データソースコントロールとの連携(その1)ではテーブルアダプターを使った ObjectDataSource の基本的な使い方について解説を行いました。今回はテーブルアダプターにカスタムロジックを追加してテーブルアダプターを拡張する方法について解説します。 ● パーシャルを使ったテーブルアダプターの拡張 簡単に CRUD(Create Read Update Delete) のメソッドを作成できるテーブルアダプターですが、更新の前に更新内容をイベントログをはき出したいといったケースの場合標準のテーブルアダプターのみでは実現できません。 この場合、テーブルアダプターのパーシャルクラスにカスタムコードを記述してテーブルアダプターを拡張することができます。 ○ パーシャルクラスと自動生成されたコード その 1 で作成したテーブルアダプターやデータセットは XML の定義しかないにも
現在 ASP.NET は 3.5 が最新バージョンで、LINQ や ASP.NET AJAX といった .NET Framework の新機能や新しいコントロールを追加し順調に進化を進めています。 しかし ASP.NET でもっとも大きな進化があったのは、今のところ ASP.NET 1.0 から ASP.NET 2.0 へのバージョンアップ時です。実際 ASP.NET 3.5 も ASP.NET 2.0 をベースに動作しており、ASP.NET 2.0 での変更がいかに重要なものだったかを伺うことができます。 2.0 のバージョンアップ時には多くのコントロールが追加されましたが、筆者が一番重要で興味深いと感じたのは、各種データソースコントロールの追加だと思っています。 今回はデータソースコントロールの基礎と ObjectDataSource の基本的な使い方について解説を行います。
EntitySetRights 列挙値は、エンティティ セットに対して許可されるアクセスの種類を示します。図 2 は、すべての有効な列挙値とその説明です。アクセス許可は、すべてのエンティティ セットに対してグローバルに設定することもできます。たとえば、次のコードはすべてのエンティティ セットのすべての読み取りアクセスを許可しますが、書き込みアクセスは許可しません。 config.SetEntitySetAccessRule("*", EntitySetRights.AllRead); 権限を組み合わせて、1 つのエンティティ セットに複数の権限を許可することもできます。次のコードは、ProductSet エンティティ セットに対する読み取りと更新のアクセスのみを許可します。 config.SetEntitySetAccessRule("ProductSet", EntitySetRight
Important WCF Data Services has been deprecated and will no longer be available for download from the Microsoft Download Center. WCF Data Services supported earlier versions of the Microsoft OData (V1-V3) protocol only and has not been under active development. OData V1-V3 has been superseded by OData V4, which is an industry standard published by OASIS and ratified by ISO. OData V4 is supported t
Important WCF Data Services has been deprecated and will no longer be available for download from the Microsoft Download Center. WCF Data Services supported earlier versions of the Microsoft OData (V1-V3) protocol only and has not been under active development. OData V1-V3 has been superseded by OData V4, which is an industry standard published by OASIS and ratified by ISO. OData V4 is supported t
Entity Framework概要 Visual Studio 2008 SP1(以降、VS 2008 SP1)によるアップデートでは、新たなデータアクセス・テクノロジとして「ADO.NET Entity Framework」(以降、Entity Framework)が追加された。本稿ではこのEntity Frameworkの概要と、その活用方法について解説する。 ■Entity Framework登場の背景 Entity Frameworkの中身を解説する前に、まずはデータアクセスにおける従来技術の問題点について確認しておこう。 現在では、オブジェクト指向プログラミングとリレーショナル・データベース(RDB)を組み合わせた開発は一般的な方式である。しかしながら、オブジェクト指向により抽象化したオブジェクト・モデルとデータベースのテーブル構造とは、そもそもの構造が異なる。 オブジェクト指
特集:Visual Studio 2008 SP1新機能解説(3) RESTスタイルのWebサービスを手軽に公開する 「ADO.NET Data Services」 WINGSプロジェクト 土井 毅 著/山田 祥寛 監修 2008/12/12 ADO.NET Data Services概要 Visual Studio 2008 SP1(以降、VS 2008)で追加されたADO.NET Data Services(ADO.NETデータサービス)は、データベースをRESTスタイルのWebサービスとして公開するためのフレームワークである。ADO.NET Data Servicesを使うことで、RIA(Rich Internet Application)などのクライアント・アプリケーションやマッシュアップ・サーバなどへのデータベース公開を実現することができる。 本稿ではまず前半でADO.NET D
New and improved EULA! TL;DR: You can now (legally) use our .NET OData client and ODataLib on Android and iOS. Backstory... Author: dpblogs Date: 11/13/2013 New version of OData Validator The OData team has been working on updating the OData Validator tool to support the new JSON format... Author: dpblogs Date: 10/27/2013 Using WCF Data Services 5.6.0 with Entity Framework 6+ And now for some exci
Important WCF Data Services has been deprecated and will no longer be available for download from the Microsoft Download Center. WCF Data Services supported earlier versions of the Microsoft OData (V1-V3) protocol only and has not been under active development. OData V1-V3 has been superseded by OData V4, which is an industry standard published by OASIS and ratified by ISO. OData V4 is supported t
This section of the documentation provides information about Windows Communication Foundation (WCF), which is a unified programming model for building service-oriented applications. It enables developers to build secure, reliable, transacted solutions that integrate across platforms and interoperate with existing investments. In this section What's New in Windows Communication Foundation 4.5 Discu
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く