An alternative to UBB.threads
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace FLocal.Common.dataobjects {
|
|
|
|
|
public class Category : SqlObject<Category> {
|
|
|
|
|
|
|
|
|
|
private class TableSpec : FLocal.Core.DB.ITableSpec {
|
|
|
|
|
public static readonly TableSpec instance = new TableSpec();
|
|
|
|
|
public string name { get { return "categories"; } }
|
|
|
|
|
public string idName { get { return "id"; } }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override FLocal.Core.DB.ITableSpec table { get { return TableSpec.instance; } }
|
|
|
|
|
|
|
|
|
|
private string _name;
|
|
|
|
|
public string name {
|
|
|
|
|
get {
|
|
|
|
|
this.LoadIfNotLoaded();
|
|
|
|
|
return this._name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void doFromHash(Dictionary<string, string> data) {
|
|
|
|
|
this._name = data["name"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|