Пример #1
0
        /// <summary>
        /// Adds a new issue to the database. The strings and ints store the added data
        /// </summary>
        public void AddIssue(string strSeries, int intNumber, string strWriter, string strPenciller, string strFormat, string strLanguage, DateTime?dtDate, string strComments, byte[] bytImage, int ID)
        {
            var newIssue = new Issues();

            //Sets the added values
            newIssue.SeriesID     = ID;
            newIssue.strSeries    = strSeries;
            newIssue.intNumber    = intNumber;
            newIssue.strWriter    = strWriter;
            newIssue.strPenciller = strPenciller;
            newIssue.strFormat    = strFormat;
            newIssue.strLanguage  = strLanguage;
            newIssue.dtDate       = dtDate;
            newIssue.strComments  = strComments;
            newIssue.bytImage     = bytImage;

            //Adds the entry and saves
            CTX.Entry(newIssue).State = EntityState.Added;
            CTX.SaveChanges();
        }
Пример #2
0
 public ClassComics(Issues I)
 {
 }