创建本地数据库 Players 表名 Table_1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
namespace EF
{
class Program
{
/*
static void Main(string[] args)
{
//region --实现增加的功能
Table_1 ta = new Table_1();
ta.Name = "Duke";
ta.Number = "21";
ta.Salary = "1520";
ta.Chamption = "5";
ta.Age = "39";
ta.Team = "Spark";
//实体的变化映射数据库
//创建一个上下文对象
PlayerEntities player = new PlayerEntities();
//告诉上下文给我保存实体
player.Table_1.Add(ta);
//把所有实体的变化保存到实体中
int i = player.SaveChanges();
Console.WriteLine(i);
Console.R