Beispiel #1
0
 async Task <Album> Create()
 {
     return(new Album(
                ID: await AtPublish.NewID(),
                Name: "新专辑",
                Creator: Kit.UserName,
                Ctime: Kit.Now));
 }
Beispiel #2
0
        async void OnAddPost(object sender, Mi e)
        {
            var post = new Post(
                ID: await AtPublish.NewID(),
                Title: "新文章",
                TempType: 0,
                Dispidx: await AtPublish.NewSeq("sq_post"),
                CreatorID: Kit.UserID,
                Creator: Kit.UserName,
                Ctime: Kit.Now);

            _fv.Data        = post;
            _lvKeyword.Data = null;
            _lvAlbum.Data   = null;
        }