Click here to Skip to main content
15,891,431 members

Comments by M. Rawan (Top 15 by date)

M. Rawan 23-Jun-20 9:53am View    
yesterday when I first read the answer I just didn't get it, now it seems pretty obvious especially after the further explanation, many thanks.
M. Rawan 22-Jun-20 12:03pm View    
I kinda stuck how to implement the UOF without using any framework every example I found on the internet uses EF to handle UOF and Repositories work, what if in the future I wanted to use MongoDB (which don't support transactions over different documents) or a remote HTTP API provider?
M. Rawan 5-May-20 10:09am View    
thank you for your clear explanation, I think you should post this as an answer so I can mark it.
M. Rawan 5-May-20 7:13am View    
thank you for your reply, I thought that too only confused about where to store those types (should it be an int that passed to each employee constrcutor or an enum in my library or just a fixed readonly int in each class)?
M. Rawan 5-May-20 5:13am View    
thank you for your replay and the factory pattern is very good but if this is Ok I have the following question:
how should this be stored in the database
if each emp concrete class has its own table how to apply a get all employees method?
should I have a BaseEmp table to store the names and each emp concrete class have its details in another table.