hello,
so what is the appropriate way of it?
hello
les say I have table named currency
Id -> int Value decimal -> 18,2 Name -> string.
The component creates default decimal value 18.2. My question is what is the right way to update decimal value from 18.2 to 18.4 ?
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?
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.
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?
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 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?
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?