?
Solved

Never used. properties of a class.

Posted on 2009-04-26
6
Medium Priority
?
148 Views
Last Modified: 2012-05-06
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
Comment
Question by:mathieu_cupryk
  • 3
  • 3
6 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 24238694
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
 

Author Comment

by:mathieu_cupryk
ID: 24238740
Is this ok, to do. What will hold the data?
and how will the variables be initialized.
0
 

Author Comment

by:mathieu_cupryk
ID: 24238745
I have another question to post. Rekated to the DAL.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 24238755
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
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 24238779
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
 

Author Comment

by:mathieu_cupryk
ID: 24238796
awesome.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question