using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Utils.Datas;
|
|
using WeighBusiness.Utils;
|
|
|
|
namespace WeighBusiness.BO
|
|
{
|
|
public class Car : Base
|
|
{
|
|
public override string TableName { get { return TableNames.车辆表; } }
|
|
|
|
public string Car_Number { get; set; }
|
|
public string Car_Weight { get; set; }
|
|
}
|
|
|
|
public static class CarUtil
|
|
{
|
|
public static Car ToCar(this DataRow row)
|
|
{
|
|
return new Car() {
|
|
Car_Number = row["Car_Number"].ToString(),
|
|
Car_Weight = row["Car_Weight"].ToString(),
|
|
ID = (long)(int)row["ID"]
|
|
};
|
|
}
|
|
|
|
}
|
|
}
|