public static ExtDbItem AddItem(this Db database, string name) { var item = new ExtDbItem(database, name); database.Add(item); return(item); }
public static ExtDbItem WithField(this ExtDbItem item, string name, string value) { var field = new DbField(name) { Value = value }; item.Fields.Add(field); return(item); }
public static Item GetItem(this ExtDbItem item) { return(item.Database.GetItem(item.ID)); }