| 1234567891011121314151617181920212223242526 |
- using EasyTemplate.Tool.Entity;
- using EasyTemplate.Tool;
- using Microsoft.AspNetCore.Components;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace EasyTemplate.Service
- {
- public class DB
- {
- [Inject] public static SqlSugarRepository<TRecord> _RepoRecord { get; set; }
- [Inject] public static SqlSugarRepository<TProduct> _Repository { get; set; }
- public static int insertRecord(TRecord record)
- {
- return _RepoRecord.InsertAsync(record).Result ? 1 : 0;
- }
- }
- }
|