Class ProductServiceVersion
Represents a service version assigned to a product.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class ProductServiceVersion : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<ProductServiceVersion>
Constructors
ProductServiceVersion()
Initializes an empty object.
Declaration
public ProductServiceVersion()
ProductServiceVersion(ServiceVersion)
Initializes a new object from provided service version.
Declaration
public ProductServiceVersion(ServiceVersion serviceVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| ServiceVersion | serviceVersion | Service version to be initialized from. |
Properties
FriendlyName
Gets the service version friendly name.
Declaration
public string FriendlyName { get; }
Property Value
| Type | Description |
|---|---|
| String |
FullName
Gets the full friendly name of the service version that includes custom or standard version number.
Declaration
public string FullName { get; }
Property Value
| Type | Description |
|---|---|
| String |
Kind
Gets the service kind: SOAP or RESTful.
Declaration
public ServiceKind Kind { get; }
Property Value
| Type | Description |
|---|---|
| ServiceKind |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
| Type | Description |
|---|---|
| EntityType |
Overrides
ProductId
Gets or sets the product database identifier.
Declaration
public int ProductId { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
ProductName
Gets the product name.
Declaration
public string ProductName { get; }
Property Value
| Type | Description |
|---|---|
| String |
ServiceId
Gets the database identifier of the service that service version belongs to.
Declaration
public int ServiceId { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
ServiceName
Gets the name of the service that service version belongs to.
Declaration
public string ServiceName { get; }
Property Value
| Type | Description |
|---|---|
| String |
ServiceVersionId
Gets or sets the service version database identifier.
Declaration
public int ServiceVersionId { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Status
Gets the service version status.
Declaration
public ServiceVersionStatus Status { get; }
Property Value
| Type | Description |
|---|---|
| ServiceVersionStatus |
Version
Gets or sets the custom-defined version identifier.
Declaration
public string Version { get; }
Property Value
| Type | Description |
|---|---|
| String |
VersionNumber
Gets the service version number.
Declaration
public int VersionNumber { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Methods
Compress()
Clears unnecessary to export data to reduce message payload.
Declaration
public void Compress()
Equals(ProductServiceVersion)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(ProductServiceVersion other)
Parameters
| Type | Name | Description |
|---|---|---|
| ProductServiceVersion | other | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| Boolean | True, if objects are equal. False, if objects are not equal. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 | Hash code of the current instance. |
Overrides
ToString()
Returns string representation of the object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String | String representation of the object. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
| Type | Description |
|---|---|
| Boolean | True if state is valid; otherwise, false. |