示例#1
0
 public static IUser Create()
 {
     var u = new StoreUser();
     var db = Store.Database;
     u.Id = (int) db.HashIncrement("TypeCounters", "IUser");
     db.HashSet($"/IUser/{u.Id}", "Created", DateTime.UtcNow.ToEpochTime());
     return u;
 }
示例#2
0
 public static IUser Get(int id)
 {
     var u = new StoreUser();
     u._id = id;
     return u;
 }