Commerce Foundation Objects and Models

A commerce entity is identified by its model name. The model defines the properties and relationships through a model definition. This lets you extend Commerce Server 2009 without recompiling or reconfiguring code. These model definitions are based on a common class called CommerceEntity, and, therefore, have the same logical relationship defined by properties and relationships through a model definition. The CommerceEntity class encapsulates the properties of the commerce entity, including a new property for the name of the model (called ModelName of type String), and the relationships to other commerce entities. You can perform operations on these commerce entities, generically, by providing the ModelName when calling the operation, for example the following code queries for a UserProfile Commerce Entity where its email property is "useremail@yourcompany.com":

var query = new CommerceQuery<CommerceEntity>("UserProfile");
query.SearchCriteria.Model.Properties["Email"] = "useremail@yourcompany.com";
CommerceResponse response = OperationService.ProcessRequest(base.GetCurrentRequestContext(), query.ToRequest());

This section will:

  • Introduce you to the CommerceEntity object, which will show you how commerce entities are structured.

  • Discuss the Microsoft Multi-Channel Commerce Foundation, which will show you how requests are performed on commerce entities.

  • Show you how to develop with Concrete Data Types that let you to create wrappers for your commerce entities.

In This Section

See Also

Other Resources

Developing with the Multi-Channel Commerce Foundation

Developing with the Commerce Foundation Catalog System

Developing with the Commerce Foundation Marketing System

Developing with the Commerce Foundation Orders System

Developing with the Commerce Foundation Profiles System