| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using System;
- using System.Text;
- using Quadarax.Foundation.Core.Data.Interface.Entity;
- namespace Quadarax.Foundation.Core.Data.Entity
- {
- public abstract class Entity<TKey> : IDao<TKey> where TKey : IEquatable<TKey>
- {
- #region *** Properties ***
- public virtual TKey Id { get; set; }
- #endregion
- #region *** Public Overrides ***
- public override string ToString()
- {
- var sb = new StringBuilder();
- sb.Append("Entity=").Append(GetType().Name).Append(";Id=").Append(Id);
- return sb.ToString();
- }
- #endregion
- }
- public abstract class EntityKeyless : IDao
- {
- #region *** Properties ***
-
- #endregion
- protected EntityKeyless()
- {
- }
- #region *** Public Overrides ***
- public override string ToString()
- {
- var sb = new StringBuilder();
- sb.Append("Entity=").Append(GetType().Name);
- return sb.ToString();
- }
-
- #endregion
- }
- }
|