HaoYue.Personality/AkiragestuProject/akMood.cs
2018-10-11 20:53:13 +08:00

33 lines
689 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AkiragestuProject
{
/// <summary>
/// 参数影响类
/// </summary>
class akMood
{
akiragetsuEntities akEn = new akiragetsuEntities();
public ak_mainperson GetMain()
{
return akEn.ak_mainperson.FirstOrDefault();
}
public bool AddQA(string Q, string A)
{
ak_qa qa = new ak_qa();
qa.ID = Guid.NewGuid();
qa.A = A;
qa.Q = Q;
akEn.ak_qa.Add(qa);
akEn.SaveChanges();
return true;
}
}
}