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.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Data.SqlClient;
|
|
|
|
|
using TinyPosEntity;
|
|
|
|
|
|
|
|
|
|
namespace TinyPosDBGen
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static string connString = "data source=localhost;initial catalog=SchoolDBDB;user id=sa;password=92070983;";
|
|
|
|
|
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
EntityController.ConnectionString = connString;
|
|
|
|
|
EntityController.GetInstance().Initialize();
|
|
|
|
|
|
|
|
|
|
Student student = new Student()
|
|
|
|
|
{
|
|
|
|
|
StudentName = "테스트용",
|
|
|
|
|
Height = 180
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//EntityController.GetInstance().AddStudent(student);
|
|
|
|
|
|
|
|
|
|
List<Student> students = EntityController.GetInstance().FindStudent("테스트용");
|
|
|
|
|
if (students.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
foreach (Student item in students)
|
|
|
|
|
{
|
|
|
|
|
EntityController.GetInstance().RemoveStudent(student);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|