Base solution for your next web application

Activities of "wcdagency"

Answer

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 ?

Answer

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?

Answer

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.

So;

I could use this approach no problem ,right?

Question

hello

Create Entity: It works no problem. Regenerate Entity: Sometimes I need add-remove entity, but I could not be able to add. it gives error. Load Entity From Database: Sometimes I prepare database table and I would like to generate class codes from it. it gives error.

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?

Showing 31 to 40 of 42 entries