using System;
using System.Xml;
using System.Xml.Serialization;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Diagnostics;
using System.Runtime;
using System.Runtime.Serialization;
using Tdo;
using Tdo.Common;
using Tdo.Common.Entities;
using Tdo.Common.Entities.Tables;
using Tdo.Common.Entities.Views;
using Tdo.Common.Helper;
using Tdo.Common.TdoSqlExpressionDom;
using Tdo.Common.TdoTypes;
namespace Tdo.Common.Entities{
/// <summary>
/// ITdoEntity Interface for all Table and View class type
/// </summary>
[CLSCompliant(true)]
public interface ITdoEntity : IDisposable
{
/// <summary>
/// Get or Set SqlCommand time out (default is 60 seconds)
/// </summary>
int CommandTimeOut { get; set; }
/// <summary>
/// Always Keeps the last number of records involved in insert,update,delete and stored procedures operations.
/// </summary>
int LastAffectedRecords { get; }
/// <summary>
/// Get or Set physical Schema Name
/// </summary>
string SchemaName { get; set; }
/// <summary>
/// Get or Set physical Entity name
/// </summary>
string EntityName { get; set; }
/// <summary>
/// Get Full physical Entity name ([schema].[name])
/// </summary>
string FullEntityName { get; }
/// <summary>
/// Get Columns Table Collection
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
Tdo.Common.TdoTypes.ITdoColumn[] TdoColumns { get; }
/// <summary>
/// Get or Set TdoHelper reference to share common resources
/// </summary>
Tdo.Common.Helper.ITdoHelper TdoHelper { get; set; }
/// <summary>
/// Occurs during Fill operations with errors.
/// </summary>
event FillErrorEventHandler FillError;
/// <summary>
/// Occurs during Update after a command is executed against the data source. The attempt to update is made, so the event fires.
/// </summary>
event SqlRowUpdatedEventHandler RowUpdated;
/// <summary>
/// Occurs during Update after a command is executed against the data source. The attempt to update is made, so the event fires.
/// </summary>
event SqlRowUpdatingEventHandler RowUpdating;
/// <summary>
/// Occurs after a command is executed against the data source.
/// </summary>
event StatementCompletedEventHandler StatementCompleted;
}
}
|