Пример #1
0
 public void DeleteAllDocuments(ITenant factory)
 {
     factory.RunSql(
         $"delete from {Parent.Table.QualifiedName} where {DocumentMapping.DocumentTypeColumn} = '{Alias}'");
 }
Пример #2
0
 public void TruncateDocumentStorage(ITenant tenant)
 {
     tenant.RunSql($"truncate table {Events.DatabaseSchemaName}.mt_streams cascade");
 }
Пример #3
0
 public void DeleteAllDocuments(ITenant factory)
 {
     factory.RunSql($"delete from mt_events where type = '{Alias}'");
 }
Пример #4
0
        void IDocumentMapping.DeleteAllDocuments(ITenant factory)
        {
            var sql = "truncate {0} cascade".ToFormat(Table.QualifiedName);

            factory.RunSql(sql);
        }
Пример #5
0
        public void TruncateDocumentStorage(ITenant tenant)
        {
            var sql = "truncate {0} cascade".ToFormat(TableName.QualifiedName);

            tenant.RunSql(sql);
        }
Пример #6
0
 public void TruncateDocumentStorage(ITenant tenant)
 {
     tenant.RunSql(
         $"delete from {_parent.TableName.QualifiedName} where {SchemaConstants.DocumentTypeColumn} = '{_mapping.Alias}'");
 }