C# Class SouthWind.Product

A class which represents the Products table in the Northwind Database.
Inheritance: IActiveRecord
Afficher le fichier Open project: subsonic/SubSonic-3.0-Templates Class Usage Examples

Méthodes publiques

Свойство Type Description
TestMode bool

Méthodes publiques

Méthode 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
Product ( ) : System
Product ( bool>.Expression expression ) : System
Product ( 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 ( Product item ) : void
Setup ( int testItems ) : void
SingleOrDefault ( bool>.Expression expression ) : Product
SingleOrDefault ( bool>.Expression expression, string connectionString, string providerName ) : Product
ToString ( ) : string
Update ( ) : void
Update ( IDataProvider provider ) : void

Private Methods

Méthode 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 méthode

public Add ( ) : void
Résultat void

Add() public méthode

public Add ( IDataProvider provider ) : void
provider IDataProvider
Résultat void

All() public static méthode

public static All ( ) : IQueryable
Résultat IQueryable

All() public static méthode

public static All ( string connectionString, string providerName ) : IQueryable
connectionString string
providerName string
Résultat IQueryable

Delete() public méthode

public Delete ( ) : void
Résultat void

Delete() public static méthode

public static Delete ( bool>.Expression expression ) : void
expression bool>.Expression
Résultat void

Delete() public méthode

public Delete ( IDataProvider provider ) : void
provider IDataProvider
Résultat void

DescriptorColumn() public méthode

public DescriptorColumn ( ) : string
Résultat string

DescriptorValue() public méthode

public DescriptorValue ( ) : string
Résultat string

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

Exists() public static méthode

public static Exists ( bool>.Expression expression ) : bool
expression bool>.Expression
Résultat bool

Exists() public static méthode

public static Exists ( bool>.Expression expression, string connectionString, string providerName ) : bool
expression bool>.Expression
connectionString string
providerName string
Résultat bool

Find() public static méthode

public static Find ( bool>.Expression expression ) : IList
expression bool>.Expression
Résultat IList

Find() public static méthode

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

GetDeleteCommand() public méthode

public GetDeleteCommand ( ) : DbCommand
Résultat System.Data.Common.DbCommand

GetDescriptorColumn() public static méthode

public static GetDescriptorColumn ( ) : string
Résultat string

GetDirtyColumns() public méthode

public GetDirtyColumns ( ) : List
Résultat List

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetInsertCommand() public méthode

public GetInsertCommand ( ) : DbCommand
Résultat System.Data.Common.DbCommand

GetKeyColumn() public static méthode

public static GetKeyColumn ( ) : string
Résultat string

GetPaged() public static méthode

public static GetPaged ( int pageIndex, int pageSize ) : PagedList
pageIndex int
pageSize int
Résultat PagedList

GetPaged() public static méthode

public static GetPaged ( int pageIndex, int pageSize, string connectionString, string providerName ) : PagedList
pageIndex int
pageSize int
connectionString string
providerName string
Résultat PagedList

GetPaged() public static méthode

public static GetPaged ( string sortBy, int pageIndex, int pageSize ) : PagedList
sortBy string
pageIndex int
pageSize int
Résultat PagedList

GetPaged() public static méthode

public static GetPaged ( string sortBy, int pageIndex, int pageSize, string connectionString, string providerName ) : PagedList
sortBy string
pageIndex int
pageSize int
connectionString string
providerName string
Résultat PagedList

GetUpdateCommand() public méthode

public GetUpdateCommand ( ) : DbCommand
Résultat System.Data.Common.DbCommand

IsDirty() public méthode

public IsDirty ( ) : bool
Résultat bool

IsLoaded() public méthode

public IsLoaded ( ) : bool
Résultat bool

IsNew() public méthode

public IsNew ( ) : bool
Résultat bool

KeyName() public méthode

public KeyName ( ) : string
Résultat string

KeyValue() public méthode

public KeyValue ( ) : object
Résultat object

Load() public méthode

public Load ( IDataReader rdr ) : void
rdr IDataReader
Résultat void

Load() public méthode

public Load ( IDataReader rdr, bool closeReader ) : void
rdr IDataReader
closeReader bool
Résultat void

Product() public méthode

public Product ( ) : System
Résultat System

Product() public méthode

public Product ( bool>.Expression expression ) : System
expression bool>.Expression
Résultat System

Product() public méthode

public Product ( string connectionString, string providerName ) : System
connectionString string
providerName string
Résultat System

ResetTestRepo() public static méthode

public static ResetTestRepo ( ) : void
Résultat void

Save() public méthode

public Save ( ) : void
Résultat void

Save() public méthode

public Save ( IDataProvider provider ) : void
provider IDataProvider
Résultat void

SetIsLoaded() public méthode

public SetIsLoaded ( bool isLoaded ) : void
isLoaded bool
Résultat void

SetIsNew() public méthode

public SetIsNew ( bool isNew ) : void
isNew bool
Résultat void

SetKeyValue() public méthode

public SetKeyValue ( object value ) : void
value object
Résultat void

Setup() public static méthode

public static Setup ( List testlist ) : void
testlist List
Résultat void

Setup() public static méthode

public static Setup ( Product item ) : void
item Product
Résultat void

Setup() public static méthode

public static Setup ( int testItems ) : void
testItems int
Résultat void

SingleOrDefault() public static méthode

public static SingleOrDefault ( bool>.Expression expression ) : Product
expression bool>.Expression
Résultat Product

SingleOrDefault() public static méthode

public static SingleOrDefault ( bool>.Expression expression, string connectionString, string providerName ) : Product
expression bool>.Expression
connectionString string
providerName string
Résultat Product

ToString() public méthode

public ToString ( ) : string
Résultat string

Update() public méthode

public Update ( ) : void
Résultat void

Update() public méthode

public Update ( IDataProvider provider ) : void
provider IDataProvider
Résultat void

Property Details

TestMode public_oe property

public bool TestMode
Résultat bool