using System.Collections.Generic;
using System.Data.Common;
using System.Threading.Tasks;
namespace SweetLib.Storage.Database
{
///
/// Object to store in database.
///
/// Type of the used identifier.
public interface IDatabaseObject : IStorable
{
///
/// Assigns field names of the database columns.
///
///
IEnumerable AssignFieldNames();
///
/// Assigns values to the query parameters.
///
///
///
Task AssignToAsync(DbParameterCollection parameters);
///
/// Assigns values to the object.
///
///
///
Task AssignFromAsync(DbDataReader reader);
///
/// Table name of the object.
///
///
string TableName();
}
}