Click here to Skip to main content
15,884,739 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionWord search Pin
Emmery Chrisco15-Sep-20 11:31
Emmery Chrisco15-Sep-20 11:31 
AnswerRe: Word search Pin
Mycroft Holmes15-Sep-20 12:29
professionalMycroft Holmes15-Sep-20 12:29 
RantOAuth 2.0 when a .NET desktop app is the 'client' Pin
DT Bullock15-Sep-20 4:42
DT Bullock15-Sep-20 4:42 
QuestionHow can a .NET Framework desktop-application gain temporary elevated privileges? Pin
DT Bullock14-Sep-20 20:00
DT Bullock14-Sep-20 20:00 
AnswerRe: How can a .NET Framework desktop-application gain temporary elevated privileges? Pin
Richard Deeming14-Sep-20 21:33
mveRichard Deeming14-Sep-20 21:33 
GeneralRe: How can a .NET Framework desktop-application gain temporary elevated privileges? Pin
DT Bullock15-Sep-20 2:47
DT Bullock15-Sep-20 2:47 
GeneralRe: How can a .NET Framework desktop-application gain temporary elevated privileges? Pin
DT Bullock15-Sep-20 2:50
DT Bullock15-Sep-20 2:50 
QuestionI want to rename a table by using EF 6 Code First approach Pin
simpledeveloper11-Sep-20 8:41
simpledeveloper11-Sep-20 8:41 
Hi I have an Entity as below:
public class Complaint
    {
        public Complaint()
        { }
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
    
        [Index("IX_UniqueConstraintComplaint", 1, IsUnique = true)]
        public int? InspectionRequestId { get; set; }
        public InspectionRequest InspectionRequest { get; set; }
    
        [Index("IX_UniqueConstraintComplaint", 2, IsUnique = true)]
        public int? InspectionResultId { get; set; }
        public InspectionResult InspectionResult { get; set; }
    
        [Index("IX_UniqueConstraintComplaint", 3, IsUnique = true)]
        public int? CaseId { get; set; }
        public Case Case { get; set; }
    
        [Index("IX_UniqueConstraintComplaint", 4, IsUnique = true)]
        public string ComplaintId { get; set; }
    }

I want to rename this entity as below with couple of column names changed, can somebody please help me in this
public class RequestResultCaseComplaint
        {
            public RequestResultCaseComplaint()
            { }
    
            [Key]
            [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
            public int RequestResultCaseComplaintId { get; set; }        
    
            [Index("IX_UniqueConstraintComplaint", 1, IsUnique = true)]
            public int? InspectionRequestId { get; set; }
            public InspectionRequest InspectionRequest { get; set; }
    
            [Index("IX_UniqueConstraintComplaint", 2, IsUnique = true)]
            public int? InspectionResultId { get; set; }
            public InspectionResult InspectionResult { get; set; }
    
            [Index("IX_UniqueConstraintComplaint", 3, IsUnique = true)]
            public int? CaseId { get; set; }
            public Case Case { get; set; }
    
            [Index("IX_UniqueConstraintComplaint", 4, IsUnique = true)]
            [Required]
            [StringLength(20)]
            public string ComplaintId { get; set; }
        }

I previously had the entity as in the 2nd case, unfortunately I removed it, and now when I am trying to create with same name again, whether EF has cached it I don't know, but EF is not recognizing it, can somebody please help me in this, does EF cache the already created Entities with same names, how can we clean it?
Its not allowing me to create the same Entity again even after deleting the Entity and trying regenerate again.
Or at least can I rename already existing Entity and its columns, how can I do it any help please?
AnswerRe: I want to rename a table by using EF 6 Code First approach Pin
Dave Kreskowiak11-Sep-20 8:57
mveDave Kreskowiak11-Sep-20 8:57 
AnswerRe: I want to rename a table by using EF 6 Code First approach Pin
Gerry Schmitz11-Sep-20 9:17
mveGerry Schmitz11-Sep-20 9:17 
GeneralRe: I want to rename a table by using EF 6 Code First approach Pin
simpledeveloper11-Sep-20 9:26
simpledeveloper11-Sep-20 9:26 
QuestionMessage Closed Pin
4-Sep-20 21:14
Bdown “FukthaPolice” Tigs4-Sep-20 21:14 
AnswerRe: Lenovo yoga 2 Pin
OriginalGriff4-Sep-20 21:38
mveOriginalGriff4-Sep-20 21:38 
GeneralRe: Lenovo yoga 2 Pin
Richard Andrew x647-Sep-20 4:08
professionalRichard Andrew x647-Sep-20 4:08 
AnswerRe: Lenovo yoga 2 Pin
Dave Kreskowiak5-Sep-20 5:41
mveDave Kreskowiak5-Sep-20 5:41 
QuestionDisplay temporary data in datagridview Pin
hiruthere1-Sep-20 0:36
hiruthere1-Sep-20 0:36 
AnswerRe: Display temporary data in datagridview Pin
Richard MacCutchan1-Sep-20 2:18
mveRichard MacCutchan1-Sep-20 2:18 
QuestionImplementation of Identity 4 in .net core 3.1 for SSO for multiple projects Pin
Ravikumar Patra14-Aug-20 2:41
professionalRavikumar Patra14-Aug-20 2:41 
AnswerRe: Implementation of Identity 4 in .net core 3.1 for SSO for multiple projects Pin
Dave Kreskowiak14-Aug-20 4:09
mveDave Kreskowiak14-Aug-20 4:09 
AnswerRe: Implementation of Identity 4 in .net core 3.1 for SSO for multiple projects Pin
Gerry Schmitz14-Aug-20 4:56
mveGerry Schmitz14-Aug-20 4:56 
QuestionDatabase for desktop application Pin
hiruthere12-Aug-20 23:34
hiruthere12-Aug-20 23:34 
AnswerRe: Database for desktop application Pin
F-ES Sitecore13-Aug-20 1:40
professionalF-ES Sitecore13-Aug-20 1:40 
AnswerRe: Database for desktop application Pin
Mycroft Holmes13-Aug-20 13:35
professionalMycroft Holmes13-Aug-20 13:35 
AnswerRe: Database for desktop application Pin
Gerry Schmitz13-Aug-20 16:13
mveGerry Schmitz13-Aug-20 16:13 
AnswerRe: Database for desktop application Pin
Gilberto - Star Lima18-Sep-20 11:32
professionalGilberto - Star Lima18-Sep-20 11:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.