/
ITableTypeDescriptor.cs
52 lines (43 loc) · 1.71 KB
/
ITableTypeDescriptor.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System.Collections.Generic;
namespace Paradigm.ORM.Data.Descriptors
{
/// <summary>
/// Provides an interface to describe the mapping relationship between a table or view and a .NET type.
/// </summary>
/// <seealso cref="IColumnPropertyDescriptorCollection"/>
public interface ITableTypeDescriptor : IColumnPropertyDescriptorCollection, ITableDescriptor
{
#region Properties
/// <summary>
/// Gets the identity column property descriptor.
/// </summary>
IColumnPropertyDescriptor IdentityProperty { get; }
/// <summary>
/// Gets a list of column property descriptors for all the primary keys.
/// </summary>
List<IColumnPropertyDescriptor> PrimaryKeyProperties { get; }
/// <summary>
/// Gets a list of column property descriptors for all the simple properties.
/// </summary>
/// <remarks>
/// Simple properties does not include the identity properties but will contain
/// the primary keys.
/// </remarks>
List<IColumnPropertyDescriptor> SimpleProperties { get; }
/// <summary>
/// Gets a list of navigation property descriptors for all the navigation properties.
/// </summary>
List<INavigationPropertyDescriptor> NavigationProperties { get; }
#endregion
#region Methods
/// <summary>
/// Determines whether the specified entity is new.
/// </summary>
/// <param name="entity">The entity.</param>
/// <returns>
/// <c>true</c> if the specified entity is new; otherwise, <c>false</c>.
/// </returns>
bool IsNew(object entity);
#endregion
}
}