示例#1
0
文件: Core.cs 项目: AokiMiku/ACP
        public void SaveFranchise(string name)
        {
            Franchises franchises = new Franchises
            {
                Name = name
            };

            franchises.Save(ApS.Databases.SqlAction.Insert);
        }
示例#2
0
文件: Core.cs 项目: AokiMiku/ACP
        public Franchises GetFranchise(int nummer)
        {
            Franchises franchises = new Franchises
            {
                Where = "Nummer = " + nummer
            };

            franchises.Read();
            return(franchises);
        }
示例#3
0
文件: Core.cs 项目: AokiMiku/ACP
        public void DeleteFranchise(int nummer)
        {
            Franchises franchises = new Franchises
            {
                Where = "Nummer = " + nummer
            };

            franchises.Read();
            if (!franchises.EoF)
            {
                franchises.Delete();
            }
        }