Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "ashgadala"

Below are the two images i am using the 6.1 version the scroll bar does not show up.

This might not be directly related to ASPNETZERO problem. I appreciate if some one can help.

Support, I got the result that i am expecting with below implementation. Is this the best way to handle it Or Do you recommend a better way ? Appreciate any help.

I was able to successfully implement the GetUserNames() task by following the documentation.

I modified the store procedure to include all columns in the UserlistDTO and would like to return all the columns.

Implementation from documentation

public async Task<List<string>> GetUserNames()
{
    EnsureConnectionOpen();

    using (var command = CreateCommand("GetUsernames", CommandType.storedProcedure))
    {
        using (var dataReader = await command.ExecuteReaderAsync())
        {
            var result = new List<string>();

            while (dataReader.Read())
            {
                result.Add(dataReader["UserName"].ToString());
            }

            return result;
        }
    }
}

My Implementation based on Stackoverflow thread

This stackoverflow Thread case to rescue.

Here is the my UserRepository.

public async Task&lt;IEnumerable&lt;object&gt;> GetUserNamesarray()
   {
              using (var command = CreateCommand("GetUsernames", CommandType.StoredProcedure))
        {
            using (var dataReader = await command.ExecuteReaderAsync())
            {
                var retObject = new List&lt;dynamic&gt;();
                while (await dataReader.ReadAsync())
                {
                    var dataRow = new ExpandoObject() as IDictionary&lt;string, object&gt;;
                    for (var iFiled = 0; iFiled < dataReader.FieldCount; iFiled++)
                    {
                            dataRow.Add(
                            dataReader.GetName(iFiled),
                            dataReader.IsDBNull(iFiled) ? null : dataReader[iFiled] // use null instead of {}
                        );
                    }

                    retObject.Add((ExpandoObject)dataRow);
                }

                return retObject;
            }
        }
    }

I have asked this question here 2723 what can't we re use the default repo?

What is the need to create the custom repository. Can we re use the exisiting repository that is created in the initial template.

Question

I am using below link to create feature but from the attribute section, Application is throwing an error.

<a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Feature-Management">https://aspnetboilerplate.com/Pages/Doc ... Management</a>

I tried using the Chatfeature as a guide but it is not working for me. Is there any template that is available that has end to end feature implementation or a step by step guide?

Received update from team.

The discussion began in Aug 2017.

Support for .NET Core 2.0 Razor Pages aspnetboilerplate/aspnetboilerplate#2447 Cross Cutting Concerns for ASP.NET Core 2.0 Razor Pages aspnetboilerplate/aspnetboilerplate#2464 Razor UI Classes vs Plugins vs AspNetZero base #1189

Just wanted to begin the discussion on Razor Pages in ASP.NET Core version implementation.

<a class="postlink" href="https://docs.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start?view=aspnetcore-2.1">https://docs.microsoft.com/en-us/aspnet ... etcore-2.1</a>

Also created github issue

Thank you .

Answer

I followed below to enforse https. But i am getting below errors. There is no help in the references. Can you please help with the references that are needed here . VS is refactoring does not help.

Severity Code Description Project File Line Suppression State Error CS1061 'IServiceCollection' does not contain a definition for 'AddHttpsRedirection' and no extension method 'AddHttpsRedirection' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?)

Severity Code Description Project File Line Suppression State Error CS1061 'IApplicationBuilder' does not contain a definition for 'UseHttpsRedirection' and no extension method 'UseHttpsRedirection' accepting a first argument of type 'IApplicationBuilder' could be found (are you missing a using directive or an assembly reference?)

<cite>alper: </cite> Hi,

Enforce HTTPS in ASP.NET Core <a class="postlink" href="https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-2.1&tabs=visual-studio">https://docs.microsoft.com/en-us/aspnet ... ual-studio</a>

Configuring HTTPS in ASP.NET Core across different platforms <a class="postlink" href="https://blogs.msdn.microsoft.com/webdev/2017/11/29/configuring-https-in-asp-net-core-across-different-platforms/">https://blogs.msdn.microsoft.com/webdev ... platforms/</a>

I bet you guys are on top of this. Can you please let us know if this is impacting ASPNET zero and the possible resolution.

<a class="postlink" href="https://visualstudiomagazine.com/articles/2018/07/13/security-updates.aspx">https://visualstudiomagazine.com/articl ... dates.aspx</a>

Showing 51 to 60 of 78 entries