当前位置:网站首页>Nbear introduction and use diagram
Nbear introduction and use diagram
2022-07-04 03:23:00 【Brother Lei talks about programming】
NBear Introduction and use diagram
Frame type :ORM Mapping framework
brief introduction :NBear It's based on .Net 2.0、C#2.0 Open all source code software development framework class library .NBear The design goal of is to try our best to reduce the workload of developers , Maximize development efficiency , At the same time, both performance and scalability .
Demo edition : NBear 1.0.1.5 + MsSql 2005 + Vs 2010[net framework 3.5]
Download address :【①. Nbear download ②. Ben Demo download 】
Using diagrams
1. establish Demo database 、 surface
2. Create a new website and add NBear quote
New website ==> add to NBear quote NBear.Core.dll、NBear.Mapping.dll、NBearLite.dll(dll Position in download NBear Of dist\... Folder ) Right click the solution to add a new item ==> Name the new class library Com.uuu9.NBear Delete Class1, Add Com.uuu9.NBear Class library reference .
3. Generate entity class code , To configure web.config
The next step is to generate entity classes , The generator is in download NBear Of dist\... Folder , The name is :NBearLite.QueryColumnsGenerator.exe, Double-click on the run , Pictured :
The built-in code generator is very simple and convenient , If you can understand it, you don't need to read the following introduction , Are very basic introductions . stay Connection String Next, enter the connection string , choice SQL Server ==> Hook in Using SQL Server 2005( Database users can choose according to their own needs ), Click on Connect Button connection , If connected as , On the left Tables The table name will be displayed in the box , Select the... To generate People surface , Configure the language to be output Output Language by C#, Fill in the output namespace Output Namespace, Entity class name Root Class Name by People, Click on
Generate Code The generated code , And then click Save Output As Button select the storage path as this Demo Next , Then refresh the project , You can see and use the generated People Entity class .
web.config The configuration of is the same as that of a common project configuration connection string , stay ConnectionStrings Nodes are added underground <add name="NBearDB" connectionString="Data Source=192.168.1.150;Initial Catalog=NBearDB;uid=sa;password=sa;"/> Just connect the string , Other configurations will be fine by default . The connection string configured here name="NBearDB", wait NBear You need to use , There are no special requirements for naming here .
4.NBear Grammar use .
The grammar is as follows :
View Code
I don't like grammar very much , Let's make our own choices , thus NBear The simple use of has been completed .
Download address :【①. Nbear download ②. Ben Demo download 】
Follow the QR code below , Subscribe to more .
边栏推荐
- CSP drawing
- @Scheduled scheduled tasks
- Teach you how to optimize SQL
- [database I] database overview, common commands, view the table structure of 'demo data', simple query, condition query, sorting data, data processing function (single row processing function), groupi
- [untitled]
- Is it really so difficult to learn redis? Today, a fan will share his personal learning materials!
- Fudan released its first review paper on the construction and application of multimodal knowledge atlas, comprehensively describing the existing mmkg technology system and progress
- Explain AI accelerator in detail: why is this the golden age of AI accelerator?
- 3D game modeling is in full swing. Are you still confused about the future?
- Enhanced for loop
猜你喜欢
Command Execution Vulnerability - command execution - vulnerability sites - code injection - vulnerability exploitation - joint execution - bypass (spaces, keyword filtering, variable bypass) - two ex
長文綜述:大腦中的熵、自由能、對稱性和動力學
Unity knapsack system (code to center and exchange items)
This function has none of DETERMINISTIC, NO SQL..... (you *might* want to use the less safe log_bin_t
Recursive structure
Crawler practice website image batch download
No clue about the data analysis report? After reading this introduction of smartbi, you will understand!
Development of digital collection trading platform development of digital collection platform
I stepped on a foundation pit today
(column 23) typical C language problem: find the minimum common multiple and maximum common divisor of two numbers. (two solutions)
随机推荐
Pagoda SSL can't be accessed? 443 port occupied? resolvent
static hostname; transient hostname; pretty hostname
Contest3145 - the 37th game of 2021 freshman individual training match_ J: Eat radish
Rhcsa day 2
I stepped on a foundation pit today
PID of sunflower classic
Slurm view node configuration information
Enhanced for loop
New year's first race, submit bug reward more!
Backpropagation formula derivation [Li Hongyi deep learning version]
2022 examination summary of quality controller - Equipment direction - general basis (quality controller) and examination questions and analysis of quality controller - Equipment direction - general b
Teach you how to optimize SQL
[latex] production of complex tables: excel2latex and detail adjustment
機器學習基礎:用 Lasso 做特征選擇
What are the virtual machine software? What are their respective functions?
PMP 考試常見工具與技術點總結
PTA tiantisai l1-079 tiantisai's kindness (20 points) detailed explanation
Development of digital collection trading platform development of digital collection platform
Have you entered the workplace since the first 00???
How about the ratings of 2022 Spring Festival Gala in all provinces? Map analysis helps you show clearly!