37 lines
739 B
C#
37 lines
739 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace AccessStudy.Core
|
|
{
|
|
public interface IStudentIDal
|
|
{
|
|
List<Student> GetAll();
|
|
|
|
/// <summary>
|
|
/// 按标识查询学生
|
|
/// </summary>
|
|
Student Get(int studentId);
|
|
|
|
/// <summary>
|
|
/// 按名称查询学生
|
|
/// </summary>
|
|
Student Get(string studentName);
|
|
|
|
/// <summary>
|
|
/// 添加学生
|
|
/// </summary>
|
|
bool Add(Student student);
|
|
|
|
/// <summary>
|
|
/// 更新学生
|
|
/// </summary>
|
|
bool Update(Student student);
|
|
|
|
/// <summary>
|
|
/// 删除学生
|
|
/// </summary>
|
|
bool Delete(int studentId);
|
|
}
|
|
}
|