Tag:windows-server

  • Entity Framework one-to-one relationship mapping

    Time:2022-11-27

    One-to-one relationship is a very complex relationship in Entity Framework, involvingHasOptional 、WithRequired 、 WithOptionalPrincipal 、 WithOptionalDependent. In this article, we will explain in detail how to use them. Let’s take members and orders as an example. A member may or may not have an order, but an order definitely belongs to a member. Let’s first […]

  • How to quickly copy and paste data in the system

    Time:2022-11-27

    The editor once fell into the “mire of copy and paste”, and shared some tools collected before with netizens:1. One-click copy and paste tool for software download platformThe new version adds action recording and playback functions. You can record mouse clicks, keyboard keys, multiple copy and paste hotkeys, etc. into actions, and then play them […]

  • Entity Framework many-to-many mapping

    Time:2022-11-26

    In the previous article, we explained the one-to-many relationship mapping in EF. In this article, we explained the many-to-many (Many-to-Many Relationship) relationship mapping in EF. In this article, we also use a simple example to explain the many-to-many relationship mapping. Zero, automatic generation of relational tables Story: In a student course selection system, there are […]

  • Install OpenSSH on Windows Server 2012

    Time:2022-11-26

    Install OpenSSH Server/Client on Windows Server.[1] Visit the following website and download OpenSSH. Usually on Windows 2012R2, select [OpenSSH-Win64.zip] to download. ⇒https://github.com/PowerShell/Win32-OpenSSH/releases[2] Extract the ZIP file and move the extracted folder to any location you like. This example shows putting in [C:\Program Files\] as shown below. [3] Open [System Properties], and click the [Environment Variables] […]

  • Entity Framework entity state

    Time:2022-11-25

    Starting today, we begin to explain the entity state and data operations in EF. This article first explains the entity state.Through the previous study, we know that EF is responsible for tracking the state of the entity through the upper and lower bits. The location of the entity state is in the namespaceSystem.Dat.EntityinnerEntityState, there are […]

  • Hexo+yilia theme website binding personalized domain name

    Time:2022-11-25

    In the last article, we have successfully deployed our own blog website, and the initialized website seems to lack some content (high-end and high-end settings). Next, we will further improve our blog site (Meng Fan Sheng You). Bind a personalized domain name When you open the fixed domain name set by github, do you feel […]

  • Entity Framework little knowledge (5)

    Time:2022-11-24

    existMany-to-many relationship mappingThe middle association table is automatically generated by EF. But sometimes we need to display the definition association table. We can define it in the following steps (continue to use the many-to-many relationship mapping article to starve the code): Define the association table class: public class StudentCourses : BaseEntity { public int StudentId […]

  • 14 Linux system security tips, there is always a trick!

    Time:2022-11-24

    For Internet IT practitioners, more and more work will gradually be transferred to the Linux system. This point, whether it is development, operation and maintenance, or testing, should be deeply understood. There was a technology survey website W3Techs released a survey report in November 2018. The report showed that the utilization rate of Linux in […]

  • Entity Framework Private Property Mapping

    Time:2022-11-23

    This article is purely for self-entertainment, because the possibility of using private attribute mapping in actual development is almost zero. The default mapping in EF is to havepublicModifier properties, but if theinternal 、 privateandprotectedHow to map the modified attributes into the database? Let’s explain them separately. zero, internal attribute mapping Let’s create the code entity […]

  • Windows installs OpenSSH Server

    Time:2022-11-23

    press the menu key mouse click settings click and install After the installation is complete, open the task manager and open the service The default is disabled, right mouse button select properties, change the startup type to automatic Go back to the task manager and find it in the service column Right mouse button select […]

  • Entity Framework Inheritance Mapping

    Time:2022-11-22

    Inheritance is often used in object-oriented development, but the SQL Server database does not have inheritance, so what can I do? We can use the following three methods: TPH (Table per Hierachy): Denormalize the SQL schema to represent polymorphism, and use discriminant columns to distinguish types; TPT (Table per Type): Use foreign keys to represent […]

  • server hosting

    Time:2022-11-22

    Which is the best server hosting? There are two most important things for users to carry out server hosting, one is the computer room environment possessed by the hosting provider, and the other is the after-sales service provided. Merchants who have done a good job in these aspects recommend Huaxin Netcom.save costsOne of the outstanding […]