Model Class

Design Pattern Framework 3.5

Design Pattern Framework 3.5 Model Class
Patterns-In-Action! ApplicationWindowsFormsModelModel
The Model in MVP design pattern. Implements IModel and communicates with WCF Service.
Declaration Syntax
C# Visual Basic
public class Model : IModel
Public Class Model _
	Implements IModel
Members
All Members Constructors Methods



Icon Member Description
Model()()()
Initializes a new instance of the Model class

AddCustomer(CustomerModel)
Adds a new customer to the database.

DeleteCustomer(Int32)
Deletes a customer record.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetCustomer(Int32)
Gets a specific customer.

GetCustomers(String)
Gets a list of all customers in the given sort order.

GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetOrders(Int32)
Gets a list of orders for a given customer.

GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
Login(String, String)
Logs in to the service.

Logout()()()
Logs out of the service.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
UpdateCustomer(CustomerModel)
Updates an existing customer in the database.

Inheritance Hierarchy
Object
Model

Assembly: WindowsFormsModel (Module: WindowsFormsModel) Version: 1.0.0.0 (1.0.0.0)