Esempio n. 1
0
File: Core.cs Progetto: AokiMiku/ACP
        public void SaveFranchise(string name)
        {
            Franchises franchises = new Franchises
            {
                Name = name
            };

            franchises.Save(ApS.Databases.SqlAction.Insert);
        }
Esempio n. 2
0
File: Core.cs Progetto: AokiMiku/ACP
        public Franchises GetFranchise(int nummer)
        {
            Franchises franchises = new Franchises
            {
                Where = "Nummer = " + nummer
            };

            franchises.Read();
            return(franchises);
        }
Esempio n. 3
0
File: Core.cs Progetto: AokiMiku/ACP
        public void DeleteFranchise(int nummer)
        {
            Franchises franchises = new Franchises
            {
                Where = "Nummer = " + nummer
            };

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