{
List GetAllCustomers();
Customers GetCustomerbyID(int customerId);
bool InsertCustomer(Customers customer);
bool UpdateCustomer(Customers customer);
bool DeleteCustomer(Customers customer);
bool DeleteCustomer(int customerId);
void Save();
}
public class CustomerRepository : ICustomerRepository
{
Accounting_DBEntities db = new Accounting_DBEntities();
public bool DeleteCustomer(Customers customer)
{
}
public bool DeleteCustomer(int customerId)
{
}
public List GetAllCustomers()
{
return db.Customer.ToList();
}
public Customers GetCustomerbyID(int customerId)
{
return db.Customer.Find(customerId);
}
public bool InsertCustomer(Customers customer)
{
try
{
db.Cus
}
catch
{
}
}
public void Save()
{
throw new NotImplementedException();
}
public bool UpdateCustomer(Customers customer)
{
throw new NotImplementedException();
}
}
< /code>
Вот мой интерфейс, который я хотел составить список из таблицы, которая находится в SQL с именем клиентами < /p>
Я хотел сделать несколько логических Свойства моей таблицы (диаграмма), но я столкнулся с ошибкой
ошибка:
Подробнее здесь: https://stackoverflow.com/questions/794 ... n-database
Мобильная версия