Esempio n. 1
0
        public async Task Update(WindowPostionPersistentObject persistentObject)
        {
            const string SQL = "UPDATE liquidity2_extensions_window_postions SET Left = @Left, Top = @Top, Height = @Height, Width = @Width  WHERE Id = @Id;";

            var connect = factory.Create();
            await connect.ExecuteWithTransactionAsync(SQL, persistentObject);
        }
Esempio n. 2
0
        public async Task Add(WindowPostionPersistentObject persistentObject)
        {
            persistentObject.CreateTimeUtc = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
            const string SQL = "INSERT INTO liquidity2_extensions_window_postions (Id,TypeFullName,Left,Top,Height,Width,CreateTimeUtc) VALUES (@Id,@TypeFullName,@Left,@Top,@Height,@Width,@CreateTimeUtc);";

            var connect = factory.Create();
            await connect.ExecuteWithTransactionAsync(SQL, persistentObject);
        }
Esempio n. 3
0
 public WindowPostion Map(WindowPostionPersistentObject persistentObject)
 {
     return(new WindowPostion
     {
         Height = persistentObject.Height,
         Width = persistentObject.Width,
         Top = persistentObject.Top,
         Left = persistentObject.Left,
         Id = Guid.Parse(persistentObject.Id)
     });
 }
Esempio n. 4
0
 public async Task Delete(WindowPostionPersistentObject persistentObject)
 {
     await Delete(persistentObject.Id);
 }