Class MarketServiceDatabase
Database implementation for IMarketService.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Markets.Database
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public class MarketServiceDatabase : IMarketService
Constructors
MarketServiceDatabase()
Declaration
public MarketServiceDatabase()
Properties
ConnectionStringFunction
Declaration
public static Func<string> ConnectionStringFunction { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.String> |
Methods
CreateMarket(IMarket)
Declaration
public virtual void CreateMarket(IMarket market)
Parameters
Type | Name | Description |
---|---|---|
IMarket | market |
DeleteMarket(MarketId)
Declaration
public virtual void DeleteMarket(MarketId marketId)
Parameters
Type | Name | Description |
---|---|---|
MarketId | marketId |
GetAllMarkets()
Declaration
public virtual IEnumerable<IMarket> GetAllMarkets()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IMarket> |
GetMarket(MarketId)
Declaration
public virtual IMarket GetMarket(MarketId marketId)
Parameters
Type | Name | Description |
---|---|---|
MarketId | marketId |
Returns
Type | Description |
---|---|
IMarket |
UpdateMarket(IMarket)
Declaration
public virtual void UpdateMarket(IMarket market)
Parameters
Type | Name | Description |
---|---|---|
IMarket | market |