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
Type | Name |
---|---|
System.String | key |
Func<<T>> | createFn |
Type Parameters
T
GetString(String)
View Source
Declaration
public override string GetString(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
Set<T>(String, T)
View Source
Declaration
public override void Set<T>(string key, T value)
Parameters
Type | Name |
---|---|
System.String | key |
<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
Type | Name |
---|---|
System.String | key |
InitSchema()
View Source
Declaration
public void InitSchema()
Inherited Methods
Exists(String)
View Source
Declaration
public virtual bool Exists(string key)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
Get(String)
View Source
Declaration
public string Get(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
Get<T>(String)
View Source
Declaration
public virtual T Get<T>(string name)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | name |
Type Parameters
T
Get<T>(String, T)
View Source
Declaration
public virtual T Get<T>(string name, T defaultValue)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | name |
<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
Type | Name |
---|---|
System.String | key |
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
Type | Name |
---|---|
System.String | key |
GetList(String)
View Source
Declaration
public virtual IList<string> GetList(string key)
Returns
System.Collections.Generic.IList<System.String>
Parameters
Type | Name |
---|---|
System.String | key |
GetNullableString(String)
View Source
Declaration
public virtual string GetNullableString(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
GetRequiredString(String)
View Source
Declaration
public virtual string GetRequiredString(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
GetString(String)
View Source
Declaration
public virtual string GetString(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
Init(ISettings)
View Source
Declaration
protected void Init(ISettings settings)
Parameters
Type | Name |
---|---|
ServiceStack.Configuration.ISettings | settings |
Set<T>(String, T)
View Source
Declaration
public virtual void Set<T>(string key, T value)
Parameters
Type | Name |
---|---|
System.String | key |
<T> | value |
Type Parameters
T