私はリポジトリパターンを使用してウィンドウアプリケーションを作成したいと思います...私のリポジトリコードは次のとおりです。 モデルは次のとおりです。モデルの using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
usin
私は3つのモデルを持っています。 class User extends Authenticatable
{
public function roles()
{
return $this->belongsToMany('App\Models\Role');
}
}
class Role extends Model
{
public fun
私はモデル public class Student
{
public int ID { get; set; }
[ForeignKey("account")]
public int AccountID { get; set; }
public Account account{ get; set; }
//some more
}
第二の
私のデータベースから、システムでは、C#のリポジトリパターンの列挙型属性であるint属性を読み取るにはどうすればよいですか。 私はクラスを作っ: public class Status : Enumeration
{
public static readonly Status Active = new Status(0, "Active");
public static re