We are creating a big project/ERP in our software firm where we are using area concept for different modules. Problem is when we are publishing the project, there are only 5 project related DLLs like **.core.dll, *.utlility.DLL etc. What I am wanting is, to create DLLs for each area like HRMS.dll, Payroll.DLL, inventory.DLL etc. Is there any process?
...Hi, I would like to know, can we test the page manage permission even before the facebook app review permission are granted,if we edit correctly the users (admins/developers/testers) in the settings of our app. Thanks.
...Hi. I'm using graph api to get posts and comments from facebook page. But I want get the new posts or new comments. Means want to refresh the data coming from graph api.
Is there any way to do that in ASP.NET MVC? Thanks.
...My controller:
[Route("api/[controller]")]
[ApiController]
public class CategoriesController : ControllerBase
{
private readonly IUnitOfWork unitOfWork;
public CategoriesController(IUnitOfWork unitOfWork)
{
this.unitOfWork = unitOfWork;
}
[HttpGet]
[Route("TestCategories")]
public ActionResult<IEnumerable<Category>> TestCategories()
{
return unitOfWork.Categories.FindAll().ToList();
}
}
My Startup:
public void ConfigureServices(IServiceCollection services)
{
services.Configure<CookiePolicyOptions>(options =>
{
// This lambda determines whether user consent for non-essential cookies is needed for a given request.
options.CheckConsentNeeded = context => true;
options.MinimumSameSitePolicy = SameSiteMode.None;
});
services.AddDbContext<ClassifiedAdsDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
services.AddScoped<IUnitOfWork, UnitOfWork>();
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
}
I did break my app so i can understand how the codes work.
As you can see on my controller i used IUnitOfWork (Interface that comes from MyProject.Domain - class library)
Scenario:
...
I am trying to access a property of parent entity which is on one side of relation while in child entity but it is giving me null reference exception. May be its problem of lazy loading which is not available in entity framework core 2.0. How to access it in core 2.0. These are details of problem
...I want to get data from related entity based on multiple conditions in a single query
I have two tables Employee(EmpId,EmpName) and Attendance(AttId,ScanType,ScanTime,EmpId), I want to display data for each month for all Employees. In Attendance table Scan type have multiple values for in-time and out-time. I want to select smallest value as in-time and largest value as out-time for each employee and store for each employee in view model. ViewModel(EmpId,In-time,Outtime).
What will be the query for this?
...
Hi, I'm using Oauth to login with facebook account as shown in the below image
When have clicking on the facebook button
...
Hi, my app is still not aproved by facebook. I heve tried following this link https://qawithexperts.com/questions/351/error-requires-either-publishtogroups-permission-and-app-bei but still now, I haven't heard from facebook yet. I think to deal with apis pages under developement mode.
1 - I have created a new app under my account facebook , and keep the developement mode.
2 - I have get the page access token.
...
Hi, what is the equivalent of db.refresh(); in asp.net core2. is it db.SaveChanges();?
Thanks.
...Hi,
Facebook docs give this javascript code as shown below for oAuth login re-request
...