Giter Site home page Giter Site logo

xakml / smartsql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotnetcore/smartsql

1.0 0.0 0.0 4.89 MB

SmartSql = MyBatis in C# + .NET Core+ Cache(Memory | Redis) + R/W Splitting + PropertyChangedTrack +Dynamic Repository + InvokeSync + Diagnostics

Home Page: https://smartsql.net/

License: Apache License 2.0

C# 100.00%

smartsql's Introduction

Clone from (dotnetcore)

Overview

官方文档请访问 https://github.com/dotnetcore/SmartSql/blob/master/README.md


入门问题总结

入门使用过程中参考了不少官方的文档, 大部分都是整体的概述, 很多细节容易出错的地方没讲到,这里总结一些我自己遇到的小问题(netcore平台的优质ORM框架实在不好找, 那就出一份里来维护这个看起来还不错的开源项目吧)

简单对象的操作操作

第一步:
关键点整体配置文件

<?xml version="1.0" encoding="utf-8" ?>
<SmartSqlMapConfig xmlns="http://SmartSql.net/schemas/SmartSqlMapConfig.xsd">
  <Settings 
    IgnoreParameterCase="false" 
    ParameterPrefix="$"  
    IsCacheEnabled="true" 
    EnablePropertyChangedTrack="true" 
    IgnoreDbNull="true"/>
  <Properties>
    <!-- 此处省略一些常见的自定义参数设置 -->
  </Properties>

</SmartSqlMapConfig>

重点来了
参数 ParameterPrefix="$" , 这里需要设置sql语句的参数占位符前缀字符, 一般情况下用的比较多的是@符号.
通常情况下容易忽略此处的设置

smartsql's People

Contributors

ahoo-wang avatar elderjames avatar ktdynamic avatar noahjzc avatar rocherkong avatar xakml avatar

Stargazers

 avatar

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.