Skip to main content

OrmLiteAppSettings

Assembly: ServiceStack.Server.dll
View Source
Declaration
public class OrmLiteAppSettings : AppSettingsBase, IAppSettings, ISettingsWriter, ISettings, IRequiresSchema

Properties

DbFactory

View Source
Declaration
public IDbConnectionFactory DbFactory { get; }

Inherited Properties

ParsingStrategy

View Source
Declaration
public ParsingStrategyDelegate ParsingStrategy { get; set; }

Tier

View Source
Declaration
public string Tier { get; set; }

Methods

GetOrCreate<T>(String, Func<T>)

View Source
Declaration
public T GetOrCreate<T>(string key, Func<T> createFn)
Returns

<T>

Parameters
TypeName
System.Stringkey
Func<<T>>createFn
Type Parameters
  • T

GetString(String)

View Source
Declaration
public override string GetString(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

Set<T>(String, T)

View Source
Declaration
public override void Set<T>(string key, T value)
Parameters
TypeName
System.Stringkey
<T>value
Type Parameters
  • T

GetAll()

View Source
Declaration
public override Dictionary<string, string> GetAll()
Returns

Dictionary<System.String,System.String>

Delete(String)

View Source
Declaration
public void Delete(string key)
Parameters
TypeName
System.Stringkey

InitSchema()

View Source
Declaration
public void InitSchema()

Inherited Methods

Exists(String)

View Source
Declaration
public virtual bool Exists(string key)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey

Get(String)

View Source
Declaration
public string Get(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

Get<T>(String)

View Source
Declaration
public virtual T Get<T>(string name)
Returns

<T>

Parameters
TypeName
System.Stringname
Type Parameters
  • T

Get<T>(String, T)

View Source
Declaration
public virtual T Get<T>(string name, T defaultValue)
Returns

<T>

Parameters
TypeName
System.Stringname
<T>defaultValue
Type Parameters
  • T

GetAll()

View Source
Declaration
public virtual Dictionary<string, string> GetAll()
Returns

System.Collections.Generic.Dictionary<System.String,System.String>

GetAllKeys()

View Source
Declaration
public virtual List<string> GetAllKeys()
Returns

System.Collections.Generic.List<System.String>

GetDictionary(String)

View Source
Declaration
public virtual IDictionary<string, string> GetDictionary(string key)
Returns

System.Collections.Generic.IDictionary<System.String,System.String>

Parameters
TypeName
System.Stringkey

GetKeyValuePairs(String)

View Source
Declaration
public virtual List<KeyValuePair<string, string>> GetKeyValuePairs(string key)
Returns

System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.String,System.String>>

Parameters
TypeName
System.Stringkey

GetList(String)

View Source
Declaration
public virtual IList<string> GetList(string key)
Returns

System.Collections.Generic.IList<System.String>

Parameters
TypeName
System.Stringkey

GetNullableString(String)

View Source
Declaration
public virtual string GetNullableString(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

GetRequiredString(String)

View Source
Declaration
public virtual string GetRequiredString(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

GetString(String)

View Source
Declaration
public virtual string GetString(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

Init(ISettings)

View Source
Declaration
protected void Init(ISettings settings)
Parameters
TypeName
ServiceStack.Configuration.ISettingssettings

Set<T>(String, T)

View Source
Declaration
public virtual void Set<T>(string key, T value)
Parameters
TypeName
System.Stringkey
<T>value
Type Parameters
  • T

Implements