Category:.NET

  • Magicodes.IE Export multiple format files through request header in. Net core

    Time:2020-11-25

    preface In the 2.2 milestone, we added some new functions. As the title says, we export our files in different formats through the request header. Let’s take a look at how to use them. In this way, we can easily configure both our data multipurpose and our data verification. At the same time, we will […]

  • GIS vector slicing algorithm (Reprint)

    Time:2020-11-25

    Transferred from: https://www.giserdqy.com/database/postgresql/25838/ For large-scale vector data, due to the large number of types and wide range of data, loading and rendering will cause the platform to be stuck. Therefore, the quadtree index slicing of vector data can efficiently load the current region vector and improve the efficiency. The common vector data is ShapeFile, which […]

  • Unity realizes mouse following (itween)

    Time:2020-11-25

    In this paper, we share the specific code of unity to achieve mouse following for your reference. The specific content is as follows Demand:When the mouse is placed on the cube and then moved away, the cube will follow the mouse. Implementation process: First, create a new plane (white) and cube (black) in the scene. […]

  • Talking about ASP.NET Core 2.0 middleware with initial parameters

    Time:2020-11-25

    problem How to ASP.NET Core 2.0 passes initial parameters to middleware? answer In an empty project, create a poco (plain old CLR object) to save the required parameters of middleware: public class GreetingOptions { public string GreetAt { get; set; } public string GreetTo { get; set; } } Add a middleware: public class GreetingMiddleware […]

  • Docker learning notes – push image to registrys warehouse

    Time:2020-11-25

    The previous section demonstrated linking through the nginx reverse broker docker container:Docker learning notes 1 – deploy the. Net core 3.1 project to the docker container and use nginx reverse proxy (centos7) (2) This section demonstrates how to push the packaged project image files created locally to the official image repository, FirstDocker HubRegister account number. […]

  • FreeSql.Generator How is the command line code generator implemented

    Time:2020-11-24

    catalog Introduction to FreeSQL FreeSql.Generator RazorEngine.NetCore Source code analysis FreeSql.Tools FreeSql FreeSQL is a powerful object relational mapping technology (O / RM), which supports. NETCORE 2.1 + or. Net framework 4.0 + or xamarin. We also have a powerful ORM generator to develop. In general, we develop database related applications, mainly divided into three types […]

  • . net cross platform framework Avalonia UI: fill the hole and point north (2): run on Linux

    Time:2020-11-24

    Review of the previous chapter: Avalonia UI, a cross platform framework of. Net: filling the hole and pointing to the North (1): familiar with UI operation This article will describe some considerations including but not limited to Avalonia and all windows to Linux cross platform development:   1、 Path problem 1. In normal WPF (and […]

  • Unity realizes mouse point 2D to 3D for rotation

    Time:2020-11-24

    In this paper, we share the specific code of unity to turn 2D mouse to 3D for your reference. The specific content is as follows The code is as follows: using UnityEngine; public class GunFollowMouse : MonoBehaviour { public RectTransform UGUICanvas; public Camera mainCamera; //Slow motion rate of camera rotation private float rotateSpeed = 5; […]

  • . net options options

    Time:2020-11-24

    Dotnet configuration source code:https://github.com/dotnet/runtime/tree/master/src/libraries/In which Microsoft.Extensions.Options Opening itemOptions official document: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-5.0 https://docs.microsoft.com/en-us/dotnet/core/extensions/options Nuget package:Microsoft.Extensions.Options It is suggested to master the following: Dependency injection: Configuration: introduce OptionsProvides strongly typed access to configuration data OptionsProvides a mechanism for validating options Configure First declare an option class public class MyOption { public string A { get; set; } […]

  • Implementation of WPF image button

    Time:2020-11-24

    This example for you to share the WPF image button implementation code, for your reference, the specific content is as follows Direct code public class ImageButton : System.Windows.Controls.Button { /// <summary> ///Pictures /// </summary> public static readonly DependencyProperty ImageProperty = DependencyProperty.Register(“Image”, typeof(ImageSource), typeof(ImageButton), new PropertyMetadata(null)); /// <summary> ///Pictures的宽度 /// </summary> public static readonly DependencyProperty ImageWidthProperty […]

  • C ා face recognition database 0.1

    Time:2020-11-23

    [next ViewFaceCore 0.2] . net face recognition library viewfacecore This is a face recognition library based on seetaface6. Net platformThis is a very simple face recognition libraryThis is a library based on. Net standard 2.0You can publish this project to Nu libraryThis project is free for commercial use A kind of Open source Open source […]

  • The intermediary model of design pattern

    Time:2020-11-23

    Mediator model Intro Mediator pattern, a mediation object is used to encapsulate a series of object interactions.Mediators make the objects do not need to explicitly refer to each other, so that they are loosely coupled and can change their interactions independently. The mediation pattern defines a single (mediation) object to encapsulate the interaction between a […]