generated from wenjy/SlnMesnac
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
933 B
C#
34 lines
933 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using SlnMesnac.Model.domain;
|
|
using SlnMesnac.Repository.service.@base;
|
|
|
|
namespace SlnMesnac.Repository.service.ScanLog
|
|
{
|
|
public class ScanLogServiceImpl:BaseServiceImpl<ScanLogModel>,IScanLogService
|
|
{
|
|
public ScanLogServiceImpl(Repository<ScanLogModel> rep) : base(rep)
|
|
{
|
|
}
|
|
|
|
public void CreatTable()
|
|
{
|
|
_rep.Context.CodeFirst.InitTables<ScanLogModel>();
|
|
List<ScanLogModel> ls = new List<ScanLogModel>();
|
|
for (int i = 0; i < 100; i++)
|
|
{
|
|
ls.Add(new ScanLogModel()
|
|
{
|
|
CreateTime = DateTime.Now,
|
|
DataType = 1,
|
|
Rfid = "12",
|
|
Code = "21",
|
|
Ocr = "2",
|
|
Url="badi.com"
|
|
});
|
|
}
|
|
|
|
this.Insert(ls);
|
|
}
|
|
}
|
|
} |