Base solution for your next web application

Activities of "wcdagency"

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

<br>

bu hata ile karşılaşıyorum.  core/Personnel.cs entity sinin içini kontrol ettiğimde JobPhone entitysi 1 tane gözüküyor. Bu hatayı çözmem lazım çünkü migration yapamıyorum. Ne(ler) yapmalıyı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?

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.

So;

I could use this approach no problem ,right?

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.

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?

Showing 1 to 10 of 42 entries