Using DomainDataSource in ASP.Net In ASP.Net 2.0 we were introduced to this concept of Data Source controls. We got the ObjectDataSource, XmlDataSource and SqlDataSource that let us bind a GridView or a ListBox to some data without having to write any additional code. In .Net Framework 3.5 we got LinqDataSource and with .Net Framework 3.5 – the EntityDataSource. In the future of ASP.Net, among other significant improvements around data access, we get a new way of accessing our data – DomainDataSource. The benefits of using the DomainDataSource is that is give us nice separation...
Build a Simple Application with .Net RIA Services (Silverlight 3) – Part 1
This is the first post in a series of posts about building applications with Microsoft .Net RIA Services and Silverlight 3. In this post I will create a new application, create a simple data model and use the Domain Service and Domain Context to retrieve data and bind it to a DataGrid.
Before you start, make sure you have Silverlight 3 Beta and .NET RIA Services March 2009 Preview installed, and you have already installed and configured SQL Server. In this sample I am using the Bank Schema...
C# 3.0 Enhancements that Build LINQ – Slides and Demos Earlier this week, I delivered a session in the IDF Developers Forum called: How LINQ Works? Diving into C# 3.0 Enhancements that Build LINQ. As promised, the slide decks and demos are available through my presentations page. Enjoy!
Create a Strongly Typed CRUD UI With ASP.Net MVC RC In this post I will show the tooling enhancements in ASP.Net MVC that lets you build CRUD (List, Details, Create and Edit) actions very fast. With a little amount of code we can create a good starting point for building a data entry application using ASP.Net MVC. 1. Prepare the database. In this sample I am using the Leasing database, that contains 3 tables. Download the schema and create the database. 2. Create a new ASP.Net MVC Application. 3. Create the Model. In this samples...
Visual Studio 2008 SP1: LINQ to SQL and FILESTREAM
In Visual Studio 2008 and .Net Framework 3.5 SP1, not only that LINQ to SQL supports the new date and time types of SQL Server 2008, but is also supports forking with FILESTREAMs.
Using the File Management Schema from my SQL Server 2008 FILESTREAM post, I created a simple .net application that uses LINQ to SQL in order to access the file contents.
Just a reminder of how the Files table looks like:
CREATE TABLE .
FileID uniqueidentifier NOT NULL ROWGUIDCOL PRIMARY KEY,
FileContents varbinary(max) FILESTREAM DEFAULT(0x)
and the corresponding LINQ to SQL...
Visual Studio 2008 SP1: LINQ to SQL with SQL Server 2008 Date Time Types
One of the pillars of Visual Studio 2008 and .Net Framework 3.5 Service Pack 1 is the support for SQL Server 2008 in Visual Studio 2008 tools and the related data access technologies. I decided to check out how LINQ to SQL works with SQL Server 2008 Date and Time types in Visual Studio 2008 and .Net Framework 3.5 Beta.
I created a simple database with a single table called friends, that holds my friends names and birth dates in several formats according the existing and new...
Download and Install Visual Studio 2008 and .Net Framework 3.5 SP1 Beta(KB945140) Visual Studio 2008 and .Net Framework 3.5 SP1 Beta was announced today after being kept as a secret for some time. Here is the list of available downloads as part of this release: Microsoft Visual Studio 2008 Service Pack 1 Beta Microsoft .NET Framework 3.5 Service pack 1 Beta - Full Installation Microsoft .NET Framework 3.5 Service pack 1 Beta - Web Installation Microsoft .NET Framework 3.5 Client Profile (Beta) ...
DEV353: Data Access in Visual Studio 2008 - Slide Decks and Demos Earlier this week I presented at Tech Ed Israel 2008. My session title was What's new around Data Access in Visual Studio 2008, and I talked about the following topics: DataSets Enhancements in Visual Studio 2008 and .Net Framework 3.5 (watch the screencast) Adding a Service Reference to a service with DataSets as part of its operations signature ...
סדרת קצרצרים בנושא LINQ to SQL
עדלי משיח טרח והכין סדרת סרטוני הדרכה קצרצרים בנושא LINQ to SQL. אז אם אתם מעניינים ללמוד על LINQ to SQL ואין לכם כוח לקרוא מאמר של 30 עמודים, או שאין לכם זמן לראות Webcast במשך שעה שלמה - תוכלו כל פעם להקדיש מספר דקות כדי להכיר עוד פינה של הטכנולוגיה.
DLINQ / LinqToSql - הכרות ראשונית
DLINQ / LinqToSql - הכרות ראשונית עם ה DataContext
LinqToSql - שימוש ב XmlMappingSource לצורך מיפוי בין טבלאות ל Class-ים
DLINQ / LinqToSql - פקודות DML , פקודת Insert
DLINQ / LinqToSql - פקודות DML , פקודת Delete
DLINQ / LinqToSql - פקודות...
ADO.Net Data Services Feedback: DataContextServiceProvider Required for LINQ to SQL support After writing my previous posts about ADO.Net Data Services: ADO.Net Data Services Part 1 - Building a Simple Web Data Service ADO.Net Data Services Part 2 - Using Service Operations with WebGet ADO.Net Data Services Part 3 - Querying a Web Data Service and WebDataGen.exe I took a little time to write some logic that manipulates data on the client side and applies the changes back to the service. Starting with adding a new...