2916 1
How to get separate DLLs for each area in an area concept applied project in ASP.NET MVC?

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?

...
Type
Question
2908 2
Can we test the facebook page manage permission even before the app review premission in granted?

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.

...
Type
Question
2851 3
Refresh posts and comments ( get new posts and comments) from graph api facebook.

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.

...
Type
Question
2784 1
ASP.NET Core - Dependency Injection

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:

  1. if i use the UnitOfWork class, the only thing the i need to inject (to startup.cs) is the UnitOfWork class only.
  2. if i use the IUnitOfWork interface. i need to inject both (to startup.cs) IUnitOfWork interface and UnitOfWork class as well because it gives error see below.

...

Type
Question
2710 0
Error System.NullReferenceException while accessing Parent entity property in child entity

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

...
Type
Question

2660 1
Fetch multiple table data using Single Query in ASP.NET using Entity framework.

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?

 

...
Type
Question
2495 2
Login with Facebook using Oauth redirect us to full page, how can replace it with pop-up in ASP.NET?

Hi, I'm using Oauth to login with facebook account as shown in the below image

When have clicking on the facebook button

...

Type
Question
2451 1
working with PAGES APIS under developement mode to manage page facebook

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.

...

Type
Question
2271 2
What is equivalent of db.refresh(), in asp.net core2

Hi, what is the equivalent of db.refresh(); in asp.net core2. is it db.SaveChanges();?

Thanks.

...
Type
Question
2238 0
Re-request facebook details, if User denies scope ("manage_page") using Startup.cs in ASP.NET Core

Hi, 

Facebook docs give this javascript code as shown below for oAuth login re-request

...
Type
Question

Page 30 of 31