Your best source of information and news about windows vista, software and vista on the internet

ARTICLES TOP 50 Spyware Virus Vista SOFT Vista HELP

Blogs

You are currently browsing the articles from MS Windows Vista Compatible Software matching the category Blogs.

Programming Entity Framework

Building Data Centric Apps with the ADO.NET Entity Framework

By
Julia Lerman

Examples

http://apress.com/book/view/1430227036

Source Code

http://rapidshare.com/files/267643644/Wrox.Professional.ADO.NET.3.5.with.LINQ.and.the.Entity.Framework.Feb.2009.rar

Source Code ::

http://apress.com/book/view/9781590599907

I’ve been using a lot of NoTracking queries to grab lists of data that I don’t need change tracked. One of the interesting behaviors of EF4’s Lazy Loading is that even if you have entities that you have queried with NoTracking on, they will still lazy load related entities.

http://learnentityframework.com/

SELECT VALUE BAModel.Contact(c.ContactID,c.FirstName,c.LastName,c.Title,c.AddDate,c.ModifiedDate)
FROM dbo.Contact as c
WHERE c.AddDate>=”1/1/2007″

I was trying to emulate T-SQL here but I need a date, not a string. I thought that without a function I was hosed again, until I discovered Entity SQL’s Literals and rewrote the query successfully this way.

SELECT VALUE BAModel.Contact(c.ContactID,c.FirstName,c.LastName,c.Title,c.AddDate,c.ModifiedDate)
FROM dbo.Contact as c
WHERE c.AddDate>= DATETIME’2007-01-1 00:00′

I’ve had  number of emails recently with people using Entity SQL and having problems similar to this, most commonly with decimals & doubles (e.g., 123.24). First I will point you to the MSDN documentation page on Literals for Entity SQL.

this ESQL expression will fail:

select p.amount from BAEntities.Payments as p where p.amount=125.25

The exception message is “The argument types ‘Edm.Decimal’ and ‘Edm.Double’ are incompatible for this operation. Near WHERE predicate, line 1, column 61.

Entity Framework POCO Template for .NET 3.5

Funky Behavior NoTracking Query Entities

Entity Framework Profiler’s Beta period ends tomorrow when it goes RTM. But that means the 30% discount also ends. It will go from $220US to $315US tomorrow.

I spend a lot of time looking at what’s going on in my database when using EF and the views that EFProf provide are indispensible. It’s organized by context instance and provides links back to the .NET code that executed each command.

  1. Agile Entity Framework 4 Repository: Part 1- Model and POCO Classes
  2. Agile Entity Framework 4 Repository: Part 2- The Repository
  3. Agile EF4 Repository: Part 3 -Fine Tuning the Repository
  4. Agile EF4 Repository: Part 4: Compiled LINQ Queries
  5. Agile Entity Framework 4 Repository Part 5: IObjectSet and Include
  6. Agile Entity Framework 4 Repository: Part 6: Mocks & Unit Tests

Data Access

Entity Framework Lazy Loading by Context or by Property?

Defining Constraints in an EF4 model that don’t exist in the database

Entity Framework ObjectContext and Reporting

,

1.
Chapter 1 Introducing the ADO.NET Entity Framework
1.
Programming Against a Model, Not Against the Database
2.
The Entity Data Model: A Client-Side Data Model
3.
The Entity in “Entity Framework”
4.
Choosing Your Backend
5.
Entity Framework Features
6.
The Entity Framework in Web Services
7.
What About ADO.NET DataSets and LINQ to SQL?
8.
Entity Framework Pain Points
9.
Programming the Entity Framework
2.
Chapter 2 Exploring the Entity Data Model
1.
Why Use an Entity Data Model?
2.
The EDM Within the Entity Framework
3.
Your First EDM
4.
The EDM in the Designer Window
5.
Entity Properties
6.
The Naked Model: Inspecting the Model’s XML
7.
A Less Daunting Model View
8.
The Three Parts of the Model
9.
CSDL: The Conceptual Schema
10.
SSDL: The Store Schema
11.
MSL: The Mappings
12.
Database Views in the EDM
13.
Code Generation from EDM to Classes
14.
Summary
3.
Chapter 3 Querying Entity Data Models
1.
Query the Model, Not the Database
2.
Your First EDM Query
3.
LINQ to Entities Queries
4.
Entity SQL Queries That Return Objects
5.
Method-Based Syntax Queries for LINQ and Entity SQL
6.
The Shortest Query
7.
EntityClient: The Lowest-Level Method for Returning Streamed Data Through EDM Queries
8.
Translation to Database Queries
9.
Avoid Inadvertent Query Execution
10.
Summary
4.
Chapter 4 Exploring EDM Queries in Greater Depth
1.
Same Model, Friendlier Name
2.
Projections in Queries
3.
Projections in Entity SQL
4.
Querying Across Associations
5.
Joins and Nested Queries
6.
Grouping
7.
Shaped Data Returned by Queries
8.
Deferred Loading and Eager Loading Queries
9.
Retrieving a Single Entity
10.
Retrieving a Single Entity with GetObjectByKey
11.
Entity SQL’s Wrapped and Unwrapped Results
12.
Summary
5.
Chapter 5 Modifying Entities and Saving Changes
1.
How ObjectContext Manages Entities
2.
The SaveChanges Method
3.
Adding New Entities
4.
Inserting New Parents and Children
5.
Deleting Entities
6.
Summary
6.
Chapter 6 Using Stored Procedures with the EDM
1.
Adding the Stored Procedures into the Model
2.
Working with Functions
3.
Implementing Functions
4.
The EDM Designer’s Model Browser
5.
Mapping the Last of the Four Functions: CustomersbyState
6.
More About the Update Model Wizard
7.
Summary
7.
Chapter 7 Tuning Up a Model
1.
The BreakAway Geek Adventures Business Model
2.
Creating a Class Library Project to Host an EDM
3.
Inspecting and Cleaning Up a New Model
4.
Cleaning Up Navigation Property Names
5.
Mapping a Few Stored Procedures
6.
Working with Many-to-Many Relationships
7.
Building the BreakAwayModel Project
8.
Summary
8.
Chapter 8 Data Binding with Windows Forms and WPF Applications
1.
Data Binding with Windows Forms Applications
2.
Data Binding with WPF Applications
3.
Summary
9.
Chapter 9 Working with Object Services
1.
Where Does Object Services Fit into the Framework?
2.
Query Processing
3.
Object Materialization
4.
The ObjectContext
5.
State Management and ObjectStateEntry
6.
Relationship Management
7.
Sending Changes Back to the Database
8.
Additional Features
9.
Summary
10.
Chapter 10 Customizing Entities
1.
Partial Classes
2.
Customizable Methods
3.
Customizable Event Handlers
4.
Other Opportunities for Customization
5.
Summary
11.
Chapter 11 Using the ASP.NET EntityDataSource Control
1.
Getting to First Base with the EntityDataSource Control and Flat Data
2.
Understanding How the EntityDataSource Is Able to Retrieve and Update Your Data
3.
Working with Related EntityReference Data
4.
Working with Hierarchical Data in a Master/Detail Form
5.
Browsing Through the EntityDataSource Events
6.
Summary
12.
Chapter 12 Customizing Entity Data Models
1.
Designer Support for Mappings
2.
Mapping Table per Type Inheritance for Tables That Describe Derived Types
3.
Using Entity Splitting to Map a Single Entity to More Than One Table
4.
Using Conditional Mapping to Filter Entity Mappings
5.
Implementing Table per Hierarchy Inheritance for Tables That Contain Multiple Types
6.
Implementing Customizations That Are Not Supported by the EDM Designer
7.
Mapping Table per Concrete (TPC) Type Inheritance for Tables with Overlapping Fields
8.
Creating Complex Types to Encapsulate Sets of Properties
9.
Using QueryView to Create Read-Only Entities and Other Specialized Mappings
10.
Additional Customization Options
11.
Summary
13.
Chapter 13 Working with Stored Procedures When Function Mapping Won’t Do
1.
Does the Procedure Line Up with an Entity?
2.
Overview of Procedures, UDFs, and TVFs in the EDM
3.
Composing Queries Against Functions
4.
Mapping and Executing Query Stored Procedures
5.
Adding Native Queries to the Model
6.
Adding Native Views to the Model
7.
Using Commands That Affect the Persisted Database
8.
Defining Insert, Update, and Delete Stored Procedures Directly in the Model
9.
Mapping Insert/Update/Delete to Types Within an Inheritance Structure
10.
Implementing and Querying with User-Defined Functions (UDFs)
11.
Summary
14.
Chapter 14 Using Entities with Web and WCF Services
1.
Building a Client That Is Ignorant of the Entity Framework
2.
Using the Entity Framework with ASMX Web Services
3.
Using the Entity Framework with WCF Services
4.
Summary
15.
Chapter 15 Working with Relationships and Associations
1.
Deconstructing Relationships in the Entity Data Model
2.
Deconstructing Relationships Between Instantiated EntityObjects
3.
Defining Relationships Between Entities
4.
Learning a Few Last Tricks to Make You a Relationship Pro
5.
Summary
16.
Chapter 16 Making It Real: Connections, Transactions, Performance, and More
1.
EntityConnection and Database Connections in the Entity Framework
2.
The Entity Framework and Transactions
3.
The Entity Framework and Security
4.
The Entity Framework and Performance
5.
Entities in Multithreaded Applications
6.
Summary
17.
Chapter 17 Controlling Objects with ObjectStateManager and MetadataWorkspace
1.
Managing ObjectStateEntry Objects with ObjectStateManager
2.
Getting an ObjectStateManager and Its Entries
3.
CurrentValues and OriginalValues
4.
Building the ObjectStateEntry Visualizer
5.
ObjectStateManager and SavingChanges
6.
The MetadataWorkspace API
7.
Creating EntityObjects Without Entity Classes
8.
Creating Entities and Graphs Dynamically
9.
Summary
18.
Chapter 18 Handling Entity Framework Exceptions
1.
Preparing for Exceptions in Entity Framework Code
2.
EntityConnectionString Exceptions
3.
Query Compilation Exceptions
4.
Creating a Common Wrapper to Handle Query Execution Exceptions
5.
SaveChanges Command Execution Exceptions
6.
ObjectStateEntries Returned by Object Services Exceptions
7.
InvalidOperationExceptions
8.
Exceptions When Multiple Parties Edit Data Concurrently
9.
Understanding Optimistic Concurrency Options in the Entity Framework
10.
Implementing Optimistic Concurrency with the Entity Framework
11.
Handling OptimisticConcurrencyExceptions
12.
Handling Concurrency Exceptions at a Lower Level
13.
Handling Exceptions When Transactions Are Your Own
14.
Summary
19.
Chapter 19 Using Your Own Custom Classes
1.
Mapping Classes to the Entity Data Model
2.
Implementing the IPOCO Interfaces
3.
Custom Class Assemblies and Entity Data Model Files
4.
Summary
20.
Chapter 20 Using the Entity Framework in n-Tier Client-Side Applications
1.
Thinking in Layers
2.
Finding Your Motivation: A Master/Detail Data Entry Form That Will Use the DataBridge Class
3.
Preventing Non-UI Logic from Leaking into the UI
4.
Implementing Logic That Fits Best in the Entity Partial Classes
5.
Building the CommandExecutor Class
6.
Building the DataBridge Class
7.
Using the DataBridge Class for Data Binding in a Master/Detail Form
8.
Allowing Users to Roll Back Their Edits
9.
Helping the User Who Forgets to Save Changes
10.
Summary
21.
Chapter 21 Using the Entity Framework in n-Tier ASP.NET Applications
1.
Understanding How an ObjectContext Fits into the Web Page Life Cycle
2.
Introducing ASP.NET’s ObjectDataSource Control
3.
Designing Object Provider Classes to Be Used with an ObjectDataSource
4.
Wiring Up the Provider Classes to ObjectDataSource Controls
5.
Understanding Why We Didn’t Use Object Graphs in This Business Layer
6.
Summary
22.
Chapter 22 Implementing a Smarter WCF Service for Working with Entities
1.
Will Your Client Agree to Your Data Contract?
2.
Shipping DTOs, Not EntityObjects
3.
Creating EntityState Properties That Do Not Rely on ObjectContext
4.
Designing the Service Interface
5.
Implementing the Service Operations
6.
Implementing the Client That Will Use the WCF Service
7.
Testing It All with a Simple Console Application
8.
Summary
23.
Chapter 23 The Entity Framework, Today and Tomorrow
1.
What About Building Reports with the Entity Framework?
2.
Extensions, Samples, and Solutions from Microsoft
3.
Entity Framework v.Next
4.
Blogs, Forums, and Other Resources

1.
Appendix Entity Framework Assemblies and Namespaces
1.
Unpacking the Entity Framework Files
2.
Exploring the Namespaces


Filed under: .NET, Blogs, Code, Database, Design, Products, Reference Tagged: .NET, ADO.NET, Books, DAO, Data, DTO, EF4, Entity, Entity Frameworks, Linq, ODBC, Oracle, SQL

Written by Visitor Blogs on May 20th, 2010 with no comments.
Read more articles on Entity and EF4 and ADO.NET and reference and Data and ODBC and Entity Frameworks and DTO and DAO and LINQ and books and .Net and Blogs and Code and SQL and Oracle and otherSoftware and Database and Design and Products.

Introducing The Windows Outreach Team and #WinWin7 on Twitter

If you happened to be searching for “pizza” on Twitter Search yesterday or are following the @mswindows Twitter account, chances are you witnessed the kickoff of #WinWin7. The Windows Outreach Team kicked off 7 weeks of Windows 7 by sending 7 piping-hot pizzas to 7 lucky Twitter followers.

And it won’t stop there.

Throughout the next 7 weeks, @mswindows will be giving away prizes all based on the number 7 (for Windows 7). Winners must take part in the challenges and are encouraged to invite friends to join in on the fun which all culminates on launch day - October 22nd.

Make sure you’re following @mswindows and tell them Brandon sent you. Oh and watch for the official #WinWin7 hash tag too.

Speaking of the Windows Outreach Team, how about meeting the supporting cast? You may have seen them on some of your favorite blogs and forums and didn’t really know who they were. Let’s change that.

Jeff D, Cody G and Ron S, are a savvy team tasked with reaching out to users and creating a real resource within the communities on the Web.

Along with Josh T on the @mswindows account, these team members bring a wealth of knowledge (both consumer and even a bit on the “techy” side) to the table. Anywhere from gaming to watching your media across your home network, these guys have been there and tried out the fixes and know what works and what doesn’t. You can bet on them to offer advice and an open ear, not a sales pitch and a bottom line – oddly enough, none of them wanted to be a snake oil salesman growing up.

So, keep a lookout for the team on some of your favorite blogs and forums and feel free to say “hi” or just ask a question. They’ll be sure to help get you on the track to whatever it is you need.

If you have any questions for the Windows Outreach Team, just send a tweet to @mswindows. Or leave a comment here too of course.

NOTE: The Windows Outreach Team also runs the Windows Live Twitter account @windowslive too.

Digg This

Written by Brandon LeBlanc on September 4th, 2009 with no comments.
Read more articles on Windows Outreach Team and Social Media and #WinWin7 and Forums and Windows Social Media Team and Social Networking and Twitter and Web and Web and Blogs and social and otherSoftware and Windows.

Simon Royal


Simon gave me a shout-out on his blog, so I decided to return the favor. I’ve got a draft saved of a post I’ve written discussing all of the sites I’ve come across that have helped me in my Mac switch, and his site is included there as well (once I get around to cleaning it up and getting it published).

Similar to what Simon said about me – he seems to share similar interest and remains objective when discussing different computing platforms and technologies, and has a genuine interest in computing as I do – that’s what makes his blog an enjoyable read for me (besides the Mac info I picked up there).

Anyway – thanks for the link Simon, and back at ya!

Check out Simon’s site here!

Written by jaysonrowe on June 12th, 2009 with no comments.
Read more articles on otherSoftware and Blogs and Computing.

Have Your Windows & Windows Live Blog Posts Showcased - Join The Clubhouse

image

Are you using your blog to talk about using Windows and Windows Live? Do you want to get your post showcased on Microsoft websites? You should join The Clubhouse. The Clubhouse is a place that brings together people using their blogs to help others how to use the best parts of Windows and Windows Live.

How does The Clubhouse work?

You first need to apply to join The Clubhouse. There is a small review process in order to insure that there is a good fit for people applying and the rest of The Clubhouse.

Once you’re approved, you continue to write fantastic Windows and Windows Live content on your blog and use special tags that help identify what you’re writing about as it relates to either Windows or Windows Live. Your posts are brought into the Clubhouse via your RSS feed (having an RSS is a requirement to take part in The Clubhouse). Once you tag your post for The Clubhouse using the special tags, it gets pulled through your RSS feed into The Clubhouse.

In order to use the special tags needed to identify your contributions for The Clubhouse, you will need to add a new Tag Provider in Windows Live Writer. Right now, The Clubhouse has special tags for Windows Live and Windows Vista, with a set of special tags launching for Windows 7 later this month.

Once your post is published with the special tags – it appears within The Clubhouse where members of The Clubhouse rate one another’s contributions, so the top rated content can be showcased on Microsoft websites, newsletters, and even tweeted from @MSWindows and @windowslive. So it’s up to your peers to choose which content is good enough to get showcased.

So where is your content showcased?

After you get enough good votes inside The Clubhouse – depending on the type of post (Windows Vista or Windows Live) your stuff will show up on 1 of 2 Microsoft websites:

Explore Windows Live:

Explore Windows Live

Discover Windows Vista:

Discover Windows Vista

Outside of the really cool opportunity to get your content from your blog showcased on Microsoft websites, The Clubhouse offers several other “perks”.

activity

As you continue to write your own content – you will earn Club Points and Badges. When you earn a certain amount of Club Points, you get Badges. Each Badge you earn will appear next to any of your content showcased on Microsoft websites. You also can earn special-recognition Badges as well. These Badges are a great way for people reading your content to see how much you rock.

Because I am a Microsoft employee, for any of my content you will see this Badge:

msbadge

If you blog quite a bit about using Windows and Windows Live – I suggest giving The Clubhouse a look and applying! It can be a great way to gain more exposure of your content!



Digg This

Written by Brandon LeBlanc on April 8th, 2009 with no comments.
Read more articles on otherSoftware and Bloggers and The Clubhouse and windows 7 and Blogs and Windows and Windows Live and Community and Windows Vista.

Open Already Published Blog Posts with Windows Live Writer

A few days ago, I needed to edit a blog post that I didn’t publish using Windows Live Writer. I discovered that Windows Live Writer allows you to open any blog post on your blog that has been published – regardless of whether it was written and published with Windows Live Writer or not.

When I clicked “Open” in the Windows Live Writer toolbar, an options window appeared giving me several options to choose from.

I can open a blog post from Drafts, Recently Posted, and of course any of the blogs that I have configured in Windows Live Writer such as the Windows Experience Blog. When I clicked on “The Windows Experience Blog” option – I was given a listing of 5 of the most recent blog posts from the Windows Experience Blog. The default is to list 5 posts however you can choose to view more blog posts via a drop down menu. I was able to choose any blog post that had been published (via Windows Live Writer or not) from the Windows Experience Blog to edit and publish those edits.

The ability to open blog posts from blogs in Windows Live Writer exists today with the current non-Beta version of Windows Live Writer available at get.live.com as well as the current Beta of Windows Live Writer available at download.live.com.

If you haven’t already discovered this, thought it might be of some interest to my fellow bloggers.

Written by Brandon LeBlanc on October 18th, 2008 with no comments.
Read more articles on Windows Live Betas and Windows Live Writer and otherSoftware and Blogs and Blogging and Windows Live.

Blogs and Communities


Home

Written by Corrine on April 28th, 2008 with no comments.
Read more articles on otherSoftware and Communities and Blogs and Windows Vista.

« Older articles

No newer articles