using System;
|
using System.Collections.Concurrent;
|
using System.Collections.Generic;
|
using System.Data.SqlClient;
|
using System.Text;
|
using Pms.Share.Data;
|
using Pms.Share.Util;
|
@0@
|
|
namespace @1@;
|
|
/// ****************************** Description *******************************
|
/// VXe¼Ì
|
/// @@2@
|
/// Tv
|
/// @@3@
|
/// ð
|
/// @@4@ R[hì¬c[ ©®ì¬
|
/// ****************************** Declarations ******************************
|
[Serializable()]
|
public partial class @5@ : RecordBase
|
{
|
#region @Property@
|
|
public static ConcurrentDictionary<string, int> PrimaryKey { get; } = new ConcurrentDictionary<string, int>();
|
|
#endregion
|
|
@18@()
|
{
|
if (PrimaryKey.Count == 0)
|
{
|
@17@
|
}
|
}
|
|
#region @Function@
|
@8@
|
|
public override void CopyTo(object dest)
|
{
|
@5@ item = dest as @5@;
|
@12@
|
}
|
|
public override void Clear()
|
{
|
@13@
|
}
|
|
public @5@ DeepClone()
|
{
|
@5@ item = new @5@();
|
@9@
|
return item;
|
}
|
|
public override bool ConvertDataRow(System.Data.DataRow row)
|
{
|
@10@
|
return true;
|
}
|
|
public void ToDataRow(System.Data.DataRow row)
|
{
|
@19@
|
}
|
|
public void ConvertReader(SqlDataReader row)
|
{
|
@10@
|
}
|
|
public string AddSql()
|
{
|
@11@
|
}
|
|
public string UpdateSql()
|
{
|
@15@
|
}
|
|
public string ToText()
|
{
|
StringBuilder text = new StringBuilder();
|
@14@
|
return text.ToString();
|
}
|
|
public object GetField(string name)
|
{
|
@16@
|
else { return null; }
|
}
|
|
#endregion
|
}
|