mirror of
https://github.com/DevExpress/netcore-winforms-demos.git
synced 2026-01-03 07:14:01 +00:00
Add Outlook Inspired and Stock Market demos
This commit is contained in:
19
OutlookInspiredApp/DevExpress.DevAV/DatabaseObject.cs
Normal file
19
OutlookInspiredApp/DevExpress.DevAV/DatabaseObject.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Runtime.Serialization;
|
||||
using DevExpress.Common;
|
||||
|
||||
namespace DevExpress.DevAV {
|
||||
public abstract class DatabaseObject : IDataErrorInfo {
|
||||
[Key]
|
||||
public long Id { get; set; }
|
||||
#region IDataErrorInfo
|
||||
string IDataErrorInfo.Error { get { return null; } }
|
||||
string IDataErrorInfo.this[string columnName] {
|
||||
get { return IDataErrorInfoHelper.GetErrorText(this, columnName); }
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user