|
|
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
38 Articles match "Class","Objects"
|
Related DevelopMentor Courses
|
MORE
|
|
Essential LINQ with the Entity Framework
including extension methods and lambda expressions Use LINQ to filter, sort, and group in-memory collections of objects Create LINQ to SQL queries to execute SQL Server stored procedures and perform updates in real-world database applications Write LINQ to XML queries to search XML documents and save them to the file system Build a rich conceptual entity model using the EF and to visually map it to a database schema Use LINQ to Entities to write strongly typed queries against the Entity Data Model Detect and resolve concurrency conflicts with both LINQ to SQL and LINQ to Entities Execute business
DevelopMentor Courses
- Friday, June 12, 2009
Virtual Foundations of C# Programming and the .NET Framework (Part 1)
Examine core language features such as types, variables, and control constructs Use object-oriented features such as class, interface, protection, and inheritance Use properties to implement the private data/public accessor pattern Avoid dll conflicts during deployment Virtual Foundations of C# Programming and the .NET Explore core C# features like classes, inheritance, namespaces, and events. NET Framework is ".NET NET 101" for developers moving to .NET.
DevelopMentor Courses
- Wednesday, February 17, 2010
Foundations of C# Programming and the .NET Framework
Examine core language features such as types, variables, and control constructs Use object-oriented features such as class, interface, protection, and inheritance Perform error notification and error handling using exceptions Use properties to implement the private data/public accessor pattern Use namespaces to group related types Use delegates and events to implement callbacks Override Object class methods such as ToString Avoid dll conflicts during deployment Use dynamic binding and polymorphism to write generic code (i.e., Explore core C# features like classes, inheritance,
DevelopMentor Courses
- Friday, June 12, 2009
|
106 Articles match "Class","Objects"
|
The Latest from DevelopMentor
|
MORE
|
|
Trackable DTO’s: Taking N-Tier a Step Further with EF4
If you look closely at the ObjectChangeTracker class that is generated for the client, you’ll see that it maintains metadata for navigation properties with items that have been added or removed, as well as original values and extended properties. This week I implemented Trackable Data Transfer Objects with EF4 using the same basic architecture that I wrote about in the article. Download code for this post here .
Not long ago my friend and colleague Richard Blewett wrote a blog post on Self-Tracking Entities in EF4, in which he questioned the service-orientation of Self-Tracking
Tony and Zuzana's World
- Friday, February 19, 2010
Securing WCF Data Services using WIF
public class ProtectedDataServiceHostFactory : DataServiceHostFactory
{
protected override ServiceHost CreateServiceHost(
Type serviceType, Uri []
baseAddresses) class ProviderEntitiesWithToken : ProviderEntities
{
string _token;
string _tokenHeader
= "Authorization" ;
public ProviderEntitiesWithToken( Uri address, string token)
: This questions comes up every once in a while..
Since Since WCF Data Services is just a normal WCF service (using the web programming model),
all
www.leastprivilege.com
- Monday, February 15, 2010
MVVM: IUIVisualizer and event management with behaviors
the ViewModel class. namespace JulMar.Windows.Interfaces
{
public interface IUIVisualizer
{
void Register( string key, Type winType);
bool Unregister( string key);
bool Show( string key, object state, bool setOwner,
EventHandler
completedProc);
ShowDialog( string key, object state);
}
}
Notice In this post, we will look at the IUIVisualizer , and bring together
some some of the concepts we’ve talked about already through a new sample – a simple
Mark's Blog of Random Thoughts
- Friday, February 5, 2010
|
-
|
The Best from DevelopMentor
|
MORE
|
-
Using Model – View – ViewModel with Silverlight
The ViewModel is just another class. The ViewModel is a wrapper for a Model. The complete model looks like this: 1: using System.ComponentModel;
2:
3: namespace SilverlightMVVMDemo.Model
4: {
5: public class Customer : INotifyPropertyChanged
6: {
7: private string _firstName;
8: private string _lastName;
9:
10: public string FirstName
11: {
12: get { return _firstName;
The Problem Solver
- Tuesday, April 7, 2009
-
Sending your own objects to a WF4 workflow
So how about passing some more complex data. To show how to do so I will replace the singe string with a person object. The CreateWorkflow() function will change now reflecting the fact that the service will no longer expect a string but a person object. private static WorkflowElement CreateWorkflow()
{
var result = new Sequence();
var input = new Variable ();
result.Variables.Add(input);
XNamespace ns = "[link] ;
var handle = new Variable ();
result.Variables.Add(handle);
The Problem Solver
- Thursday, August 20, 2009
-
Rehosting the Workflow Designer in WF4
Now that is more like it! The WorkflowDesigner The WorkflowDesigner is the main class to work with. The WorkflowDesigner has an Items collection with a bunch of useful objects in there. One of these is a Selection object. Note: This blog post is written using the .NET NET framework 4.0
The Problem Solver
- Wednesday, December 23, 2009
-
Getting started with Windows Workflow Foundation 4
And as WF 4 is a complete rewrite we should approach it as a new product and forget just about everything we already know about WF 3. That might be a bit surprising, after all we still have activities and a workflow runtime right? Well wrong actually! There no longer is a class named WorkflowRuntime. Creating workflows is done by creating a WorkflowInstance object. As you may have heard Windows Workflow Foundation 4 is not an upgrade from Windows Workflow Foundation 3 (or 3.5). The version numbers might suggest that the previous version was quite mature but in fact it refers to
The Problem Solver
- Monday, June 22, 2009
-
The new Windows Workflow Foundation 4 runtime
In WF4 this central class no longer exists and we manage individual workflows. To compare the two, this is what a minimal console application looks like in WF3. It basically runs a workflow and prints a message when done: static void Main( string [] args)
{
using (WorkflowRuntime workflowRuntime = new WorkflowRuntime())
{
workflowRuntime.WorkflowCompleted += delegate ( object sender, WorkflowCompletedEventArgs e)
{
Console.WriteLine( "The workflow has completed."
The Problem Solver
- Tuesday, June 23, 2009
-
Using Windows Workflow Foundation 4 Receive from an non WF client
Next up are the request and response objects. In this case I am using just two strings so they are pretty simple as well.
[MessageContract(IsWrapped = false )]
public class Operation1Request
{
[MessageBodyMember(
Namespace = "[link] ,
Name = "string" )]
public string Value { get; set; }
}
[MessageContract(IsWrapped = false )]
public class Operation1Response
{
[MessageBodyMember(
Namespace = "[link] ,
The Problem Solver
- Wednesday, August 19, 2009
-
WF4&WCF and message correlation
The input for both Receive activities will still be the same person class from the previous example and we will use the persons ID to route the messages. The new workflow definition looks like this: private static WorkflowElement CreateWorkflow()
{
var result = new Sequence();
var input = new Variable ();
result.Variables.Add(input);
XNamespace ns = "[link] ;
var handle1 = new Variable ();
result.Variables.Add(handle1);
var handle2 = new Variable
The Problem Solver
- Wednesday, September 2, 2009
|
|
|