.net core 连接mysql 四:建立 ISysUserRepository
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using fjxw.model;
namespace fjxw.dal
{
public interface ISysUserRepository:IDisposable
{
IEnumerable<sysuser> GetUsers();
sysuser GetUserByID(int userID);
void InsertUser(sysuser user);
void DeleteUser(int userID);
void UpdateUser(sysuser user);
void Save();
}
}
本文来自博客园,作者:.net&new,转载请注明原文链接:https://www.cnblogs.com/wugh8726254/p/16062219.html