30 lines
761 B
C#
30 lines
761 B
C#
|
|
/// <summary>
|
|
///INTERFACE IMPLIMENT FOR TABLE t_Log
|
|
///By wm with codesmith.
|
|
///on 04/18/2017
|
|
/// </summary>
|
|
|
|
using System;
|
|
using System.Data.SqlClient;
|
|
namespace DeiNiu.wms.Data.Model
|
|
{
|
|
[Serializable] class Log_Imp : Log_base_Imp
|
|
{
|
|
protected override void CmdPrepare(SqlCommand sqlCmd)
|
|
{
|
|
base.CmdPrepare(sqlCmd);
|
|
Log mObj = ( Log)modelObj;
|
|
switch (_cust_op_flag)
|
|
{
|
|
case 100: //by name
|
|
_strSql = "SELECT * FROM t_Log WHERE NAME = @NAME";
|
|
sqlCmd.CommandText = _strSql;
|
|
sqlCmd.Parameters.AddWithValue("@NAME", mObj._name);
|
|
break;
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
} |