Click here to Skip to main content
15,889,096 members
Home / Discussions / C#
   

C#

 
GeneralRe: Complete simple project for Opening Cash Drawer and Printer tm-u220 Pin
Sascha Lefèvre15-May-15 4:57
professionalSascha Lefèvre15-May-15 4:57 
AnswerRe: Complete simple project for Opening Cash Drawer and Printer tm-u220 Pin
Afzaal Ahmad Zeeshan15-May-15 4:47
professionalAfzaal Ahmad Zeeshan15-May-15 4:47 
QuestionWhy dependency injection? Pin
Afzaal Ahmad Zeeshan14-May-15 9:48
professionalAfzaal Ahmad Zeeshan14-May-15 9:48 
AnswerRe: Why dependency injection? Pin
Agent__00715-May-15 0:23
professionalAgent__00715-May-15 0:23 
AnswerRe: Why dependency injection? Pin
Eddy Vluggen15-May-15 3:07
professionalEddy Vluggen15-May-15 3:07 
GeneralRe: Why dependency injection? Pin
Afzaal Ahmad Zeeshan15-May-15 3:12
professionalAfzaal Ahmad Zeeshan15-May-15 3:12 
GeneralRe: Why dependency injection? Pin
Eddy Vluggen15-May-15 3:23
professionalEddy Vluggen15-May-15 3:23 
QuestionDelete or update an entity that inheritance of abstract entity [TPT] Pin
kdms14-May-15 6:31
kdms14-May-15 6:31 
Hello, i try to delete or update an entity "user" that inherite an Person abstract entity. My Person class
C#
    public abstract class Person
    {
        public int PersonID { get; set; }
        [Required]
        public string PersonCNI { get; set; }
        [Required]
        public string PersonName { get; set; }
        public string PersonSurname { get; set; }
        public int SexID { get; set; }
        [ForeignKey("SexID")]
        public virtual Sex Sex { get; set; }
        public int AdressID { get; set; }
        [ForeignKey("AdressID")]
        public virtual Adress Adress { get; set; }
    }
   //User class
    public class User : Person
    {
        //public User():base() {}
        //public int UserID { get; set; }
        [Required]
        public string UserLogin { get; set; }
        [Required]
        public string UserPassword { get; set; }
        public bool UserAccountState { get; set; }
        public int UserAccessLevel { get; set; }
        public int ProfileID { get; set; }
        [ForeignKey("ProfileID")]
        public virtual Profile Profile { get; set; }
        public ICollection<UserBranch> UserBranches { get; set; }
    }
  //In my DdContext i have this
    public class EFDbContext : DbContext
    {
public DbSet<Person> People { get; set; }
}

Now in one controller i have to delete an user, i have this error
"An exception of type 'System.ArgumentException' occurred in Ext.Net.dll but was not handled in user code

Additional information: Invalid data source source type. The data source must be of type IListSource, IEnumerable or IDataSource." Thank
Questionuse of isolated storage Pin
Member 1169086614-May-15 5:36
Member 1169086614-May-15 5:36 
AnswerRe: use of isolated storage Pin
OriginalGriff14-May-15 8:03
mveOriginalGriff14-May-15 8:03 
Questionmethods to use to build modular application Pin
Droiddr14-May-15 4:05
Droiddr14-May-15 4:05 
AnswerRe: methods to use to build modular application Pin
Pete O'Hanlon14-May-15 4:58
mvePete O'Hanlon14-May-15 4:58 
GeneralRe: methods to use to build modular application Pin
Droiddr14-May-15 5:42
Droiddr14-May-15 5:42 
GeneralRe: methods to use to build modular application Pin
Pete O'Hanlon14-May-15 22:05
mvePete O'Hanlon14-May-15 22:05 
GeneralRe: methods to use to build modular application Pin
Droiddr15-May-15 2:47
Droiddr15-May-15 2:47 
GeneralRe: methods to use to build modular application Pin
Pete O'Hanlon15-May-15 3:23
mvePete O'Hanlon15-May-15 3:23 
QuestionMessage Removed Pin
14-May-15 3:16
professionalN_tro_P14-May-15 3:16 
AnswerRe: Reflection DbSet Remove Pin
Richard Deeming14-May-15 4:41
mveRichard Deeming14-May-15 4:41 
GeneralMessage Removed Pin
14-May-15 5:40
professionalN_tro_P14-May-15 5:40 
GeneralRe: Reflection DbSet Remove Pin
Richard Deeming14-May-15 6:30
mveRichard Deeming14-May-15 6:30 
GeneralRe: Reflection DbSet Remove Pin
Sascha Lefèvre14-May-15 8:13
professionalSascha Lefèvre14-May-15 8:13 
GeneralRe: Reflection DbSet Remove Pin
Richard Deeming14-May-15 8:39
mveRichard Deeming14-May-15 8:39 
GeneralMessage Removed Pin
18-May-15 4:42
professionalN_tro_P18-May-15 4:42 
GeneralRe: Reflection DbSet Remove Pin
Richard Deeming18-May-15 4:53
mveRichard Deeming18-May-15 4:53 
QuestionHow to play webm file in windows form application? Pin
Member 1161266213-May-15 17:59
Member 1161266213-May-15 17:59 

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.