Coder Social home page Coder Social logo

yoyomooc / asp.net-core--for-beginner Goto Github PK

View Code? Open in Web Editor NEW
102.0 14.0 37.0 4.46 MB

we will discuss all the basics, intermediate and advanced ASP. NET Core concepts to help you build data-driven web applications.

Home Page: http://www.yoyomooc.com/

License: Apache License 2.0

C# 75.56% HTML 24.16% CSS 0.04% JavaScript 0.24%
asp-net-core-2 asp-net-core-mvc asp-net-core-crud asp-net-core-sample

asp.net-core--for-beginner's Introduction

《深入浅出ASP.NET Core》 ASP.NET Core 3.1 配套视频食用更加

第一本基于ASP.NET Core 3.1的实战来了

销售地址:深入浅出 ASP.NET Core

实际仓库地址:http://code.52abp.com/yoyomooc/asp.net-core-mvc-2019

镜像地址

(国内加速码云)Gitee地址: https://gitee.com/aiabpedu/asp.net-core-mvc-2019

Github地址:https://github.com/yoyomooc/asp.net-core--for-beginner

前言

本仓库为课程:https://www.52abp.com/College 里面的配套视频代码

在本课程中,我们将学习从入门最基本的命令,到中级和高级的 ASP.NET Core 概念,也将从零开始创建一个 ASP.NET Core 项目。 在我们搭建这个项目并完成整个课程的过程中,我们将学习如何使用 ASP.NET Core Web 框架,并且能够掌握如何搭建以数据驱动的 Web 程序的一切知识。

我们的课程内容会包含:

  • ASP.NET CORE 的基础知识

  • ASP.NET CORE MVC 的详细说明

  • Entity Framework Core 的必备知识

  • ASP.NET Identity Core 我们将学习标准的 身份的认证以及授权和权限管理

    通过完成本课程,您将能够使用 ASP.NET Core 开发新的 Web 应用程序,并在为新项目选择技术时做出战略决策。

课程学习地址:

课程:https://www.52abp.com/College 里面的配套视频代码

如何提问-群规

  1. 工作是时间严禁讨论与技术无关话题,严禁斗图。工作时间为上午 9 点到 12 点,下午 1 点半到 6 点。
  2. 欢迎提问,尽量少提很具体的问题,比如:你在公司写的代码为什么不 work,然贴一段代码出来这种。
  3. 多提抽象性问题,比如找出你自己对于 asp.net core 现在理解还不够深入的点来问(所以首先你要知道完全掌握 asp.net core 需要掌握哪些点)。
  4. 如果你一定要给我提问题,请不要 @群里的任何人,没有人一定要帮你解决问题。
  5. 可以发 issue 到 github https://github.com/yoyomooc/asp.net-core--for-beginner ,也有助于沉淀知识 ,群主尽量每天晚上去瞄一下。
  6. 定时清人,3 个月没有说过话的先清除,后面怎么清我还没有想好。 回归初心,打造高质量的 asp.net core 学习群。

交流群:

asp.net-core--for-beginner's People

Contributors

ltm0203 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asp.net-core--for-beginner's Issues

bootstrap4 collapse 手风琴无动画效果

Describe the bug 该问题是怎么引起的?

bootstrap4 collapse 手风琴无动画效果

大佬。我很喜欢你的项目。。样式UI非常棒。符合现代设计,但是折叠是无动画效果的。是否跟框架集成中某个东西发生了冲突? 又或者能否分享一下。。这个框架是用了什么UI 主题?

跨平台开发实战掌握ASP.NET Core 与EntityFramework Core-介绍

介绍

本视频是第一个系统介绍 ASP.NET Core 和 Entity Framework Core 技术的视频,它旨在帮助开发者循序渐进的了解 ASP.NET Core 和 Entity Framework Core 。

与其他视频不同,本书会从一个 ASP.NET Core 空项目开始搭建一个实际的项目,从最基本的控制台开始,涉及到基本的启动流程到中级的应用到最后的高级 ASP.NET Core 概念。

在本视频中我们会包含清晰详细的操作步骤结合大量的实际代码帮助读者学以致用,将 .NET Core 知识应用到真实的项目开发当中。

通过完成本课程,您将能够使用 ASP.NET Core 开发新的 Web 应用程序,并在为新项目选择技术选型时做出战略决策。

我们将详细讨论和学习:

  • ASP.NET Core
  • ASP.NET Core MVC
  • ASP.NET Identity Core
  • Entity Framework Core
  • 部署和发布

image

关于腾讯过来的客户

如果您已经在腾讯购买了课程,请联系我,可以通过后台的数据绑定给您打通功能,您无须再次购买课程。

大佬真帅

如何提问-群规

  1. 工作是时间严禁讨论与技术无关话题,严禁斗图。工作时间为上午 9 点到 12 点,下午 1 点半到 6 点。
  2. 欢迎提问,尽量少提很具体的问题,比如:你在公司写的代码为什么不 work,然贴一段代码出来这种。
  3. 多提抽象性问题,比如找出你自己对于 asp.net core 现在理解还不够深入的点来问(所以首先你要知道完全掌握 asp.net core 需要掌握哪些点)。
  4. 如果你一定要给我提问题,请不要 @群里的任何人,没有人一定要帮你解决问题。
  5. 可以发 issue 到 github https://github.com/yoyomooc/asp.net-core--for-beginner ,也有助于沉淀知识 ,群主尽量每天晚上去瞄一下。
  6. 定时清人,3 个月没有说过话的先清除,后面怎么清我还没有想好。 回归初心,打造高质量的 asp.net core 学习群。
    @全体成员

查询始终有进程未关闭

Describe the bug 该问题是怎么引起的?

1、有一个游客外部查看信息接口,现要记录访问次数,我就在原有的查询后添加保存数据。

To Reproduce 重现步骤

2、原来的代码,无错误:


 public async Task<CommonDto> GetInformation(string Id)
        {
            var decryptId = AesHelper.AESDecrypt(Id);
            var keyName = $"GetInformation_By_{Id}";
            if (!string.IsNullOrEmpty(decryptId))
            {
                var cacheObj = await _cacheManager.GetOrDefault(CacheHelper.CacheName.Web, keyName);
                var resDto = new CommonDto();
                if (cacheObj == null)
                {
                    using (CurrentUnitOfWork.DisableFilter(AbpDataFilters.MayHaveTenant, AbpDataFilters.MustHaveTenant))
                    {
                        var infoId = Convert.ToInt64(decryptId);
                        var info = await _infoRepository.GetAllIncluding(m => m.CreatorUser, m => m.Material).FirstOrDefaultAsync(m => m.Id == infoId);
                        if (info != null)
                        {
                            resDto = new CommonDto
                            {
                                Title = info.Title,
                                Content = info.Material == null ? info.Summary : info.Material.Content,
                                CreationTime = info.CreationTime,
                                CreatorUserName = info.CreatorUser?.Name,
                                ReplyCount = info.ReplyCount,
                                CoverImage = info.Material?.CoverImage,
                                MaterialType = info.Material == null ? 0 : info.Material.MaterialType,
                                Url = info.Material?.Url,
                                Hits = info.Hits,
                                Upvotes = info.Upvotes,
                            };
                            await _cacheManager.SetCacheAsync(CacheHelper.CacheName.Web, keyName, resDto, null, TimeSpan.FromMinutes(10));
                        }
                    }
                }
                else
                {
                    resDto = (CommonDto)cacheObj;
                }
                return resDto;
            }
            else
            {
                throw new UserFriendlyException("数据加载错误");
            }
        }

我改动后的代码:

public async Task<CommonDto> GetInformation(string Id)
        {
            var decryptId = AesHelper.AESDecrypt(Id);
            var keyName = $"GetInformation_By_{Id}";
            if (!string.IsNullOrEmpty(decryptId))
            {
                var cacheObj = await _cacheManager.GetOrDefault(CacheHelper.CacheName.Web, keyName);
                var resDto = new CommonDto();
                if (cacheObj == null)
                {
                    using (CurrentUnitOfWork.DisableFilter(AbpDataFilters.MayHaveTenant, AbpDataFilters.MustHaveTenant))
                    {
                        var infoId = Convert.ToInt64(decryptId);
                        var info = await _infoRepository.GetAllIncluding(m => m.CreatorUser, m => m.Material).FirstOrDefaultAsync(m => m.Id == infoId);
                        if (info != null)
                        {
                            info.ExternalHits += 1;
                            resDto = new CommonDto
                            {
                                Title = info.Title,
                                Content = info.Material == null ? info.Summary : info.Material.Content,
                                CreationTime = info.CreationTime,
                                CreatorUserName = info.CreatorUser?.Name,
                                ReplyCount = info.ReplyCount,
                                CoverImage = info.Material?.CoverImage,
                                MaterialType = info.Material == null ? 0 : info.Material.MaterialType,
                                Url = info.Material?.Url,
                                Hits = info.Hits + info.ExternalHits,
                                Upvotes = info.Upvotes,
                            };
                            await _infoRepository.UpdateAsync(info);
                            await _cacheManager.SetCacheAsync(CacheHelper.CacheName.Web, keyName, resDto, null, TimeSpan.FromMinutes(10));
                        }
                    }
                }
                else
                {
                    resDto = (CommonDto)cacheObj;
                    using (CurrentUnitOfWork.DisableFilter(AbpDataFilters.MayHaveTenant, AbpDataFilters.MustHaveTenant))
                    {
                        var infoId = Convert.ToInt64(decryptId);
                        var info = await _infoRepository.FirstOrDefaultAsync(m => m.Id == infoId);
                        if (info != null)
                        {
                            info.ExternalHits += 1;                            
                            await _infoRepository.UpdateAsync(info);
                        }
                    }
                }
                return resDto;
            }
            else
            {
                throw new UserFriendlyException("数据加载错误");
            }
        }

报错信息

There is already an open DataReader associated with this Connection which must be closed first.
具体如下:
INFO 2019-08-29 10:48:49,128 [12 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Sg.SFA.Common.CommonInfoAppService.GetInformation (Sg.SFA.Application) with arguments (SooZuohyIxCVEW6MuDRwRg==) - ModelState is Valid
ERROR 2019-08-29 10:48:49,643 [23 ] Mvc.ExceptionHandling.AbpExceptionFilter - There is already an open DataReader associated with this Connection which must be closed first.
MySql.Data.MySqlClient.MySqlException (0x80004005): There is already an open DataReader associated with this Connection which must be closed first.
at MySql.Data.MySqlClient.Interceptors.ExceptionInterceptor.Throw(Exception exception)
at MySql.Data.MySqlClient.MySqlCommand.Throw(Exception ex)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at MySql.Data.MySqlClient.MySqlTransaction.Rollback()
at MySql.Data.MySqlClient.MySqlTransaction.Dispose(Boolean disposing)
at System.Data.Common.DbTransaction.Dispose()
at Microsoft.EntityFrameworkCore.Storage.RelationalTransaction.Dispose()
at Abp.EntityFrameworkCore.Uow.DbContextEfCoreTransactionStrategy.Dispose(IIocResolver iocResolver) in D:\Github\aspnetboilerplate\src\Abp.EntityFrameworkCore\EntityFrameworkCore\Uow\DbContextEfCoreTransactionStrategy.cs:line 84
at Abp.EntityFrameworkCore.Uow.EfCoreUnitOfWork.DisposeUow() in D:\Github\aspnetboilerplate\src\Abp.EntityFrameworkCore\EntityFrameworkCore\Uow\EfCoreUnitOfWork.cs:line 143
at Abp.Domain.Uow.UnitOfWorkBase.Dispose() in D:\Github\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkBase.cs:line 296
at Abp.AspNetCore.Mvc.Uow.AbpUowActionFilter.d__4.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.AspNetCore\AspNetCore\Mvc\Uow\AbpUowActionFilter.cs:line 49
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---

目前情况:

调用我改动过的接口就一直报这个错误,代码撤销了也报这个错误,连带这张表的其他get接口也报这个错误,别人电脑没调用我的接口还是好好的使用。目前就是我的电脑涉及这张表的这类就看就报这个错误。

关于视频播放功能需求收集

请您稍微阐述下功能以及作用。
我会近期考虑把功能加上。
如果您已经有相关的代码块的话,可以把代码提交上来,我参考参考。非常感谢。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.