using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AkiragestuProject { /// /// 参数影响类 /// 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; } } }