23 Şubat 2015 Pazartesi

linq tekrar eden string

formControl.SendKeys(new string(Enumerable.Repeat('a', Convert.ToInt32(lengtMin) + 1).ToArray()));

viewbag selectlist dropdownlist

     @Html.DropDownListFor(model => model.EntityId, ViewBag.EntityId as SelectList, new { @class = "form-control" })
         

dropdownlist viewbag

You can also do this. It should work:
ViewBag.CurrencyID = x;
and in view:
@Html.DropDownListFor(model => model.CurrencyID, null)
Hope this helps!

20 Şubat 2015 Cuma

linq

GetAll<Address>().Select(x => TypeAdapter.Adapt<Address, AddressDto>(x)).ToList();

.net 6 mapget kullanımı

 app.UseEndpoints(endpoints => {     endpoints.MapGet("/", async context =>     {         var response = JsonConvert.Seriali...