You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
659 B

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"]
};
}
}
}