5 changed files with 153 additions and 4 deletions
@ -0,0 +1,49 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace formula_manage |
|||
{ |
|||
/// <summary>
|
|||
/// 查询接口
|
|||
/// </summary>
|
|||
/// <typeparam name="T"></typeparam>
|
|||
public interface IProvider<T> where T : class |
|||
{ |
|||
/// <summary>
|
|||
/// 查询所有记录
|
|||
/// </summary>
|
|||
/// <returns></returns>
|
|||
List<T> Select(); |
|||
|
|||
/// <summary>
|
|||
/// 查询一条记录
|
|||
/// </summary>
|
|||
/// <param name="t"></param>
|
|||
/// <returns></returns>
|
|||
List<T> Selectsql(T t); |
|||
|
|||
/// <summary>
|
|||
/// 插入一条记录
|
|||
/// </summary>
|
|||
/// <param name="t"></param>
|
|||
/// <returns></returns>
|
|||
int Insert(T t); |
|||
|
|||
/// <summary>
|
|||
/// 修改一条记录
|
|||
/// </summary>
|
|||
/// <param name="t"></param>
|
|||
/// <returns></returns>
|
|||
int Update(T t); |
|||
|
|||
/// <summary>
|
|||
/// 删除一条记录
|
|||
/// </summary>
|
|||
/// <param name="t"></param>
|
|||
/// <returns></returns>
|
|||
int Delete(T t); |
|||
} |
|||
} |
|||
@ -0,0 +1,41 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace formula_manage.SQLModels |
|||
{ |
|||
// internal class STUFF_Product
|
|||
//{
|
|||
// }
|
|||
|
|||
public partial class Product |
|||
{ |
|||
public string ProductCode { get; set; } |
|||
public string ProductName { get; set; } |
|||
public Nullable<int> ProductType { get; set; } |
|||
public Nullable<int> ProductClass { get; set; } |
|||
public Nullable<int> Color { get; set; } |
|||
public string ProductLot { get; set; } |
|||
public Nullable<double> FullWeight { get; set; } |
|||
public Nullable<int> ProductUnit { get; set; } |
|||
public Nullable<double> SafetyStock { get; set; } |
|||
public Nullable<double> Price { get; set; } |
|||
public Nullable<double> CurrentStock { get; set; } |
|||
public Nullable<double> Deduct { get; set; } |
|||
public Nullable<System.DateTime> RplDate { get; set; } |
|||
public Nullable<System.DateTime> UsedDate { get; set; } |
|||
public string CuMonth { get; set; } |
|||
public Nullable<double> LaStock { get; set; } |
|||
public Nullable<double> ThStock { get; set; } |
|||
public Nullable<double> ThUsed { get; set; } |
|||
public Nullable<int> LampPosition { get; set; } |
|||
public string TablePosition { get; set; } |
|||
public string Area { get; set; } |
|||
public Nullable<double> Concentration { get; set; } |
|||
public string Batch_NO { get; set; } |
|||
public string SUPPLIER { get; set; } |
|||
public double GRAVITY { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue