• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 155
  • Last Modified:

Never used. properties of a class.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;

using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

namespace KORE.SIDWebClient.BusinessEntities
{
    [DataObject]
    [Serializable]
    public partial class Tickets
    {


        #region Fields
        private System.Int32? _ticketID;
        private System.String _ticketNumber;
        private System.String _ticketType;
        private System.String _ticketStatus;
        private System.String _ticketSeverity;
        private System.String _shortDescription;
        private System.String _externalTicket;
        private System.String _reasonMenu;
        private System.String _problemNote;
        private System.String _solutionNote;
        private System.String _actionNote;
        private System.String _followupNote;
        private System.Boolean? _companiesFlag;
        private System.String _agentCreated;
        private System.DateTime? _dateCreated;
        private System.DateTime? _dateLastModified;
        private System.String _agentClosed;
        private System.DateTime? _dateClosed;
        private System.String _agentFollowup;
        private System.DateTime? _followupBy;
        private System.Boolean? _deletedFlag;
        private System.String _ticketTypeOld;
        private System.String _assignedTo;
        private System.String _requestType;
        private System.String _serviceImpact;
        private System.DateTime? _dateTimeAssigned;
        private System.String _priority;
        private System.DateTime? _dateAssigned;
        private System.String _trackIt;
        private System.String _contactMethod;
        private System.String _locationSIMs;
        private System.String _userID;
        private System.String _ticketApplicationType;
        private System.Int32? _accountID;

        #endregion


        #region Properties


        public System.Int32? TicketID { get; set; }

        public System.String TicketNumber { get; set; }

        public System.String TicketType { get; set; }

        public System.String TicketStatus { get; set; }

        public System.String TicketSeverity { get; set; }

        public System.String ShortDescription { get; set; }

        public System.String ExternalTicket { get; set; }

        public System.String ReasonMenu { get; set; }

        public System.String ProblemNote { get; set; }

        public System.String SolutionNote { get; set; }

        public System.String ActionNote { get; set; }

        public System.String FollowupNote { get; set; }

        public System.Boolean? CompaniesFlag { get; set; }

        public System.String AgentCreated { get; set; }

        public System.DateTime? DateCreated { get; set; }

        public System.DateTime? DateLastModified { get; set; }

        public System.String AgentClosed { get; set; }

        public System.DateTime? DateClosed { get; set; }

        public System.String AgentFollowup { get; set; }

        public System.DateTime? FollowupBy { get; set; }

        public System.Boolean? DeletedFlag { get; set; }

        public System.String TicketTypeOld { get; set; }

        public System.String AssignedTo { get; set; }

        public System.String RequestType { get; set; }

        public System.String ServiceImpact { get; set; }

        public System.DateTime? DateTimeAssigned { get; set; }

        public System.String Priority { get; set; }

        public System.DateTime? DateAssigned { get; set; }

        public System.String TrackIt { get; set; }

        public System.String ContactMethod { get; set; }

        public System.String LocationSIMs { get; set; }

        public System.String UserID { get; set; }

        public System.String TicketApplicationType { get; set; }

        public System.Int32? AccountID { get; set; }


        #endregion
    }
}



Warning	4	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._ticketNumber' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	21	31	KORE.SIDWebClient.BusinessEntities
Warning	5	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._ticketType' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	22	31	KORE.SIDWebClient.BusinessEntities
Warning	6	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._ticketStatus' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	23	31	KORE.SIDWebClient.BusinessEntities
Warning	7	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._ticketSeverity' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	24	31	KORE.SIDWebClient.BusinessEntities
Warning	8	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._shortDescription' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	25	31	KORE.SIDWebClient.BusinessEntities
Warning	9	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._externalTicket' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	26	31	KORE.SIDWebClient.BusinessEntities
Warning	10	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._reasonMenu' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	27	31	KORE.SIDWebClient.BusinessEntities
Warning	11	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._problemNote' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	28	31	KORE.SIDWebClient.BusinessEntities
Warning	12	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._solutionNote' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	29	31	KORE.SIDWebClient.BusinessEntities
Warning	13	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._actionNote' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	30	31	KORE.SIDWebClient.BusinessEntities
Warning	14	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._followupNote' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	31	31	KORE.SIDWebClient.BusinessEntities
Warning	15	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._companiesFlag' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	32	33	KORE.SIDWebClient.BusinessEntities
Warning	16	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._agentCreated' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	33	31	KORE.SIDWebClient.BusinessEntities
Warning	17	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._dateCreated' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	34	34	KORE.SIDWebClient.BusinessEntities
Warning	18	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._dateLastModified' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	35	34	KORE.SIDWebClient.BusinessEntities
Warning	19	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._agentClosed' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	36	31	KORE.SIDWebClient.BusinessEntities
Warning	20	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._dateClosed' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	37	34	KORE.SIDWebClient.BusinessEntities
Warning	21	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._agentFollowup' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	38	31	KORE.SIDWebClient.BusinessEntities
Warning	22	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._followupBy' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	39	34	KORE.SIDWebClient.BusinessEntities
Warning	23	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._deletedFlag' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	40	33	KORE.SIDWebClient.BusinessEntities
Warning	24	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._ticketTypeOld' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	41	31	KORE.SIDWebClient.BusinessEntities
Warning	25	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._assignedTo' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	42	31	KORE.SIDWebClient.BusinessEntities
Warning	26	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._requestType' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	43	31	KORE.SIDWebClient.BusinessEntities
Warning	27	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._serviceImpact' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	44	31	KORE.SIDWebClient.BusinessEntities
Warning	28	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._dateTimeAssigned' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	45	34	KORE.SIDWebClient.BusinessEntities
Warning	29	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._priority' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	46	31	KORE.SIDWebClient.BusinessEntities
Warning	30	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._dateAssigned' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	47	34	KORE.SIDWebClient.BusinessEntities
Warning	31	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._trackIt' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	48	31	KORE.SIDWebClient.BusinessEntities
Warning	32	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._contactMethod' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	49	31	KORE.SIDWebClient.BusinessEntities
Warning	33	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._locationSIMs' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	50	31	KORE.SIDWebClient.BusinessEntities
Warning	34	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._userID' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	51	31	KORE.SIDWebClient.BusinessEntities
Warning	35	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._ticketApplicationType' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	52	31	KORE.SIDWebClient.BusinessEntities
Warning	36	The field 'KORE.SIDWebClient.BusinessEntities.Tickets._accountID' is never used	C:\svn\2009_0420_MC_1_0_a\code\KORE.SIDWebClient.BusinessEntities\Ticket\Ticket.cs	53	31	KORE.SIDWebClient.BusinessEntities

Open in new window

0
mathieu_cupryk
Asked:
mathieu_cupryk
  • 3
  • 3
1 Solution
 
käµfm³d 👽Commented:
You defined your properties as automatic {get; set;}. This means you do not have to declare a private member variable to hold the data. You can safely remove all the private member variable declarations (the lines between your region fields tags).
0
 
mathieu_cuprykAuthor Commented:
Is this ok, to do. What will hold the data?
and how will the variables be initialized.
0
 
mathieu_cuprykAuthor Commented:
I have another question to post. Rekated to the DAL.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
käµfm³d 👽Commented:
I haven't read up completely on the automatics, but my understanding is that the run-time creates a variable for you--you never see it. So instead of accessing a private member, you access a variable through its property.

The variables will be initialized when you create an instance of the class. They *should* hold whatever the default value for the class/value type is.
0
 
käµfm³d 👽Commented:
See screenshot for demo:

I believe anything that has a default constructor or is a value type will get a default initialization.
Untitled.jpg
0
 
mathieu_cuprykAuthor Commented:
awesome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now