merhaba
database de yüklüce güncelleme yaptım. isteğim, bu yaptığm değişiklik güncellemelere göre modal ın güncellenmesi. tüm db tabloları için scaffold generate komutu vs var mı?
Merhaba
Accidents isimli bir tablom var;
public AccidentsAppService(IRepository<Accident> accidentRepository, IAccidentsExcelExporter accidentsExcelExporter , IRepository<Personnel, int> lookup_personnelRepository, IRepository<Rank, int> lookup_rankRepository, **WCDDbContext dbContext**)
{
_accidentRepository = accidentRepository;
_accidentsExcelExporter = accidentsExcelExporter;
_lookup_personnelRepository = lookup_personnelRepository;
_lookup_rankRepository = lookup_rankRepository;
** _dbContext = dbContext;**
}
yukarıda görüldüğü gibi _dbContext instance sini aldım. bu şekilde çalıştırdığım zaman
HandlerException: Can't create component as it has dependencies to be satisfied. waiting for the following dependencies: which was not registered.
hatasını alıyorum . Sanırım dependency injection instance sini register yapmam lazım. nerede yapmalıyım?
merhaba sorunu hallettim. sorum , .application içinde dependency injection instance alıp kullanmam bir sorun oluşturur mu? .application kısmı backend (arka taraf) değil mi?
hello, my question is, is it a problem if I use dependency injection instance in the .application layer? Isn't the .application part backend?
merhaba sorunu sorum , .application katmanı içinde dependency injection instance alıp kullanmam bir sorun oluşturur mu? .application kısmı backend (arka taraf) değil mi?
Merhaba, neden ingilizce sormamı istedin? neyse, My question is, is it ok to use dependency injection in application layer end use entity framework in it?
Sometimes for example, I created table with
table name: abc Id int NameVal string
and lets say it gave error : nameVal could not be duplicate,
error message is not important. because what ever the error message is, it could not be repaired.
If I want to create another table table name :def Id int NameValue: string
the same error for first one is still displayed, code creates views ,controllers, scripts but database table is not created. Due to this situation, I lost a lot of time. Now, I recloned a clean copy of project , then I will move the codes from non working one to newly cloned one. I still could not get support from you.
I realized that, when I try to remove an entity , I face that problem. I think I make something wrong. So my question is , les say, I want to completely remove table abc from database and everything in code , thus, what should be the process of it? is there some command for it?