C# Class SouthWind.Order

A class which represents the Orders table in the Northwind Database.
Inheritance: IActiveRecord
Mostrar archivo Open project: subsonic/SubSonic-3.0-Templates Class Usage Examples

Public Properties

Property Type Description
TestMode bool

Public Methods

Method Description
Add ( ) : void
Add ( IDataProvider provider ) : void
All ( ) : IQueryable
All ( string connectionString, string providerName ) : IQueryable
Delete ( ) : void
Delete ( bool>.Expression expression ) : void
Delete ( IDataProvider provider ) : void
DescriptorColumn ( ) : string
DescriptorValue ( ) : string
Equals ( object obj ) : bool
Exists ( bool>.Expression expression ) : bool
Exists ( bool>.Expression expression, string connectionString, string providerName ) : bool
Find ( bool>.Expression expression ) : IList
Find ( bool>.Expression expression, string connectionString, string providerName ) : IList
GetDeleteCommand ( ) : DbCommand
GetDescriptorColumn ( ) : string
GetDirtyColumns ( ) : List
GetHashCode ( ) : int
GetInsertCommand ( ) : DbCommand
GetKeyColumn ( ) : string
GetPaged ( int pageIndex, int pageSize ) : PagedList
GetPaged ( int pageIndex, int pageSize, string connectionString, string providerName ) : PagedList
GetPaged ( string sortBy, int pageIndex, int pageSize ) : PagedList
GetPaged ( string sortBy, int pageIndex, int pageSize, string connectionString, string providerName ) : PagedList
GetUpdateCommand ( ) : DbCommand
IsDirty ( ) : bool
IsLoaded ( ) : bool
IsNew ( ) : bool
KeyName ( ) : string
KeyValue ( ) : object
Load ( IDataReader rdr ) : void
Load ( IDataReader rdr, bool closeReader ) : void
Order ( ) : System
Order ( bool>.Expression expression ) : System
Order ( string connectionString, string providerName ) : System
ResetTestRepo ( ) : void
Save ( ) : void
Save ( IDataProvider provider ) : void
SetIsLoaded ( bool isLoaded ) : void
SetIsNew ( bool isNew ) : void
SetKeyValue ( object value ) : void
Setup ( List testlist ) : void
Setup ( Order item ) : void
Setup ( int testItems ) : void
SingleOrDefault ( bool>.Expression expression ) : Order
SingleOrDefault ( bool>.Expression expression, string connectionString, string providerName ) : Order
ToString ( ) : string
Update ( ) : void
Update ( IDataProvider provider ) : void

Private Methods

Method Description
GetRepo ( ) : IRepository
GetRepo ( string connectionString, string providerName ) : IRepository
Init ( ) : void
OnChanged ( ) : void
OnCreated ( ) : void
OnLoaded ( ) : void
OnSaved ( ) : void
SetTestRepo ( ) : void

Method Details

Add() public method

public Add ( ) : void
return void

Add() public method

public Add ( IDataProvider provider ) : void
provider IDataProvider
return void

All() public static method

public static All ( ) : IQueryable
return IQueryable

All() public static method

public static All ( string connectionString, string providerName ) : IQueryable
connectionString string
providerName string
return IQueryable

Delete() public method

public Delete ( ) : void
return void

Delete() public static method

public static Delete ( bool>.Expression expression ) : void
expression bool>.Expression
return void

Delete() public method

public Delete ( IDataProvider provider ) : void
provider IDataProvider
return void

DescriptorColumn() public method

public DescriptorColumn ( ) : string
return string

DescriptorValue() public method

public DescriptorValue ( ) : string
return string

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

Exists() public static method

public static Exists ( bool>.Expression expression ) : bool
expression bool>.Expression
return bool

Exists() public static method

public static Exists ( bool>.Expression expression, string connectionString, string providerName ) : bool
expression bool>.Expression
connectionString string
providerName string
return bool

Find() public static method

public static Find ( bool>.Expression expression ) : IList
expression bool>.Expression
return IList

Find() public static method

public static Find ( bool>.Expression expression, string connectionString, string providerName ) : IList
expression bool>.Expression
connectionString string
providerName string
return IList

GetDeleteCommand() public method

public GetDeleteCommand ( ) : DbCommand
return System.Data.Common.DbCommand

GetDescriptorColumn() public static method

public static GetDescriptorColumn ( ) : string
return string

GetDirtyColumns() public method

public GetDirtyColumns ( ) : List
return List

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetInsertCommand() public method

public GetInsertCommand ( ) : DbCommand
return System.Data.Common.DbCommand

GetKeyColumn() public static method

public static GetKeyColumn ( ) : string
return string

GetPaged() public static method

public static GetPaged ( int pageIndex, int pageSize ) : PagedList
pageIndex int
pageSize int
return PagedList

GetPaged() public static method

public static GetPaged ( int pageIndex, int pageSize, string connectionString, string providerName ) : PagedList
pageIndex int
pageSize int
connectionString string
providerName string
return PagedList

GetPaged() public static method

public static GetPaged ( string sortBy, int pageIndex, int pageSize ) : PagedList
sortBy string
pageIndex int
pageSize int
return PagedList

GetPaged() public static method

public static GetPaged ( string sortBy, int pageIndex, int pageSize, string connectionString, string providerName ) : PagedList
sortBy string
pageIndex int
pageSize int
connectionString string
providerName string
return PagedList

GetUpdateCommand() public method

public GetUpdateCommand ( ) : DbCommand
return System.Data.Common.DbCommand

IsDirty() public method

public IsDirty ( ) : bool
return bool

IsLoaded() public method

public IsLoaded ( ) : bool
return bool

IsNew() public method

public IsNew ( ) : bool
return bool

KeyName() public method

public KeyName ( ) : string
return string

KeyValue() public method

public KeyValue ( ) : object
return object

Load() public method

public Load ( IDataReader rdr ) : void
rdr IDataReader
return void

Load() public method

public Load ( IDataReader rdr, bool closeReader ) : void
rdr IDataReader
closeReader bool
return void

Order() public method

public Order ( ) : System
return System

Order() public method

public Order ( bool>.Expression expression ) : System
expression bool>.Expression
return System

Order() public method

public Order ( string connectionString, string providerName ) : System
connectionString string
providerName string
return System

ResetTestRepo() public static method

public static ResetTestRepo ( ) : void
return void

Save() public method

public Save ( ) : void
return void

Save() public method

public Save ( IDataProvider provider ) : void
provider IDataProvider
return void

SetIsLoaded() public method

public SetIsLoaded ( bool isLoaded ) : void
isLoaded bool
return void

SetIsNew() public method

public SetIsNew ( bool isNew ) : void
isNew bool
return void

SetKeyValue() public method

public SetKeyValue ( object value ) : void
value object
return void

Setup() public static method

public static Setup ( List testlist ) : void
testlist List
return void

Setup() public static method

public static Setup ( Order item ) : void
item Order
return void

Setup() public static method

public static Setup ( int testItems ) : void
testItems int
return void

SingleOrDefault() public static method

public static SingleOrDefault ( bool>.Expression expression ) : Order
expression bool>.Expression
return Order

SingleOrDefault() public static method

public static SingleOrDefault ( bool>.Expression expression, string connectionString, string providerName ) : Order
expression bool>.Expression
connectionString string
providerName string
return Order

ToString() public method

public ToString ( ) : string
return string

Update() public method

public Update ( ) : void
return void

Update() public method

public Update ( IDataProvider provider ) : void
provider IDataProvider
return void

Property Details

TestMode public_oe property

public bool TestMode
return bool