mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-25 12:12:51 +08:00
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using FreeSql.Internal;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FreeSql.ClickHouse.Curd
|
|
{
|
|
|
|
class ClickHouseDelete<T1> : Internal.CommonProvider.DeleteProvider<T1>
|
|
{
|
|
public ClickHouseDelete(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere)
|
|
: base(orm, commonUtils, commonExpression, dywhere)
|
|
{
|
|
}
|
|
|
|
public override List<T1> ExecuteDeleted()
|
|
{
|
|
throw new NotImplementedException("FreeSql.ClickHouse.Curd 暂未实现");
|
|
}
|
|
public override string ToSql()
|
|
{
|
|
return base.ToSql().Replace("DELETE FROM", "ALTER TABLE").Replace("WHERE", "DELETE WHERE");
|
|
}
|
|
#if net40
|
|
#else
|
|
public override Task<List<T1>> ExecuteDeletedAsync(CancellationToken cancellationToken = default)
|
|
{
|
|
throw new NotImplementedException("FreeSql.ClickHouse.Curd 暂未实现");
|
|
}
|
|
#endif
|
|
}
|
|
}
|