Resource

Namespace: Babel.Data Assembly: Babel.Data.dll

Represents a resource entity.

public class Resource : EntityTracker, INotifyPropertyChanged

Inheritance

objectEntityTrackerResource

Implements

INotifyPropertyChanged

Inherited Members

EntityTracker.SetWithNotify<T>(T, ref T, string), EntityTracker.IsDirty, EntityTracker.PropertyChanged, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Extension Methods

MixIn.IsSignatureKey(Resource)

Constructors

Resource()

public Resource()

Properties

Assemblies

Gets or sets the collection of assemblies associated with the resource as mapping files.

[InverseProperty("MappingFile")]
public virtual ICollection<Assembly> Assemblies { get; set; }

Property Value

ICollection<Assembly>

Code

Gets or sets the code of the resource.

public string Code { get; set; }

Property Value

string

CreatedAt

Gets or sets the creation date of the resource.

public DateTime CreatedAt { get; set; }

Property Value

DateTime

Data

Gets or sets the data of the resource.

public byte[] Data { get; set; }

Property Value

byte[]

DataFormat

Gets or sets the data format of the resource.

public string DataFormat { get; set; }

Property Value

string

Description

Gets or sets the description of the resource.

public string Description { get; set; }

Property Value

string

Id

Gets or sets the ID of the resource.

public int Id { get; set; }

Property Value

int

LicenseTemplates

Gets or sets the collection of license templates associated with the resource as signature keys.

[InverseProperty("SignatureKeys")]
public virtual ICollection<LicenseTemplate> LicenseTemplates { get; set; }

Property Value

ICollection<LicenseTemplate>

Licenses

Gets or sets the collection of licenses associated with the resource as signature keys.

[InverseProperty("SignatureKeys")]
public virtual ICollection<License> Licenses { get; set; }

Property Value

ICollection<License>

Name

Gets or sets the name of the resource.

public string Name { get; set; }

Property Value

string

Password

Gets or sets the password of the resource.

public string Password { get; set; }

Property Value

string

Products

Gets or sets the collection of products associated with the resource as signature keys.

[InverseProperty("SignatureKeys")]
public virtual ICollection<Product> Products { get; set; }

Property Value

ICollection<Product>

ResourceCustomers

Gets or sets the collection of customers associated with the resource.

public virtual ICollection<CustomerResource> ResourceCustomers { get; set; }

Property Value

ICollection<CustomerResource>

ResourceOrders

Gets or sets the collection of orders associated with the resource.

public virtual ICollection<OrderResource> ResourceOrders { get; set; }

Property Value

ICollection<OrderResource>

ResourceProducts

Gets or sets the collection of products associated with the resource.

public virtual ICollection<ProductResource> ResourceProducts { get; set; }

Property Value

ICollection<ProductResource>

ResourceReleases

Gets or sets the collection of releases associated with the resource.

public virtual ICollection<ReleaseResource> ResourceReleases { get; set; }

Property Value

ICollection<ReleaseResource>

Source

Gets or sets the source of the resource.

public string Source { get; set; }

Property Value

string

Type

Gets or sets the type of the resource.

public string Type { get; set; }

Property Value

string

UpdatedAt

Gets or sets the last update date of the resource.

public DateTime? UpdatedAt { get; set; }

Property Value

DateTime?

Methods

Create(string)

Creates a new Resource from a given file.

public static Resource Create(string path)

Parameters

NameDescription

path string

Full pathname of the file.

Returns

NameDescription

A new instance of the Resource class.

Last updated