C# Class Warehouse.Depot

Mostra file Open project: Starcounter/Warehouse Class Usage Examples

Public Properties

Property Type Description
DepotKey string
Description string
ID string
Modified System.DateTime
Name string
Organization Organization
UrlName string

Public Methods

Method Description
CanAddSoftware ( Software software ) : bool
FindSoftware ( Software software ) : Software

Find software in depot (searches in suits)

FindSoftware ( string id ) : Software

Find software in depot (searches in suits)

GetDepotWhereSoftwareExists ( Software software ) : IList

Get list of depot where software exists in

RegisterHooks ( ) : void

Register database commit hooks

SetModified ( ) : void

Call this when you want to the External Rest API to get the latest version and not a cahced one

Private Methods

Method Description
GetUniqueDepotKey ( ) : string

Generate unique "storekey" depot key.

Method Details

CanAddSoftware() public method

public CanAddSoftware ( Software software ) : bool
software Software
return bool

FindSoftware() public method

Find software in depot (searches in suits)
public FindSoftware ( Software software ) : Software
software Software Software
return Software

FindSoftware() public method

Find software in depot (searches in suits)
public FindSoftware ( string id ) : Software
id string Software ID
return Software

GetDepotWhereSoftwareExists() public static method

Get list of depot where software exists in
public static GetDepotWhereSoftwareExists ( Software software ) : IList
software Software
return IList

RegisterHooks() public static method

Register database commit hooks
public static RegisterHooks ( ) : void
return void

SetModified() public method

Call this when you want to the External Rest API to get the latest version and not a cahced one
public SetModified ( ) : void
return void

Property Details

DepotKey public_oe property

public string DepotKey
return string

Description public_oe property

public string Description
return string

ID public_oe property

Unique depot id per organization (based on organization.Name and this.Name)
public string ID
return string

Modified public_oe property

public DateTime,System Modified
return System.DateTime

Name public_oe property

public string Name
return string

Organization public_oe property

public Organization,Warehouse Organization
return Organization

UrlName public_oe property

Unique depot name per organization Url safe
public string UrlName
return string