internal void InitAfterLoad() { foreach (ArenaTeamMember arenaTeamMember in ArenaTeamMember.FindAll(this)) { arenaTeamMember.Init(this); this.Members.Add(arenaTeamMember.Id, arenaTeamMember); } this.m_stats = ActiveRecordBase <ArenaTeamStats> .FindByPrimaryKey((object)this.Id); this.m_slot = ArenaMgr.GetSlotByType(this.Type); this.m_leader = this[this.LeaderLowId]; if (this.m_leader == null) { this.OnLeaderDeleted(); } if (this.m_leader == null) { return; } this.Register(); }
public static formtable_main Find(int id) { return((formtable_main)(ActiveRecordBase.FindByPrimaryKey(typeof(formtable_main), id))); }
public static Company Find(int id) { return((Company)ActiveRecordBase.FindByPrimaryKey(typeof(Company), id)); }
public static uf_CarGPS_WFRoute Find(int id) { return((uf_CarGPS_WFRoute)(ActiveRecordBase.FindByPrimaryKey(typeof(uf_CarGPS_WFRoute), id))); }
public static QuestionContainer Find(int id) { return((QuestionContainer)ActiveRecordBase.FindByPrimaryKey(typeof(QuestionContainer), id)); }
public static modeDataShare_135_set Find(int id) { return((modeDataShare_135_set)(ActiveRecordBase.FindByPrimaryKey(typeof(modeDataShare_135_set), id))); }
public static Agent Find(object key) { return((Agent)ActiveRecordBase.FindByPrimaryKey(typeof(Agent), key)); }
public static Person Find(int id) { return((Person)ActiveRecordBase.FindByPrimaryKey(typeof(Person), id)); }
public static Employee Find(string ID) { return((Employee)(ActiveRecordBase.FindByPrimaryKey(typeof(Employee), ID))); }
public static Blog Find(int id) { return((Blog)ActiveRecordBase.FindByPrimaryKey(typeof(Blog), id)); }
public static Movie Find(int id) { return((Movie)ActiveRecordBase.FindByPrimaryKey(typeof(Movie), id)); }
public new static Firm Find(int id) { return((Firm)ActiveRecordBase.FindByPrimaryKey(typeof(Firm), id)); }
public static Order Find(int id) { return((Order)(ActiveRecordBase.FindByPrimaryKey(typeof(Order), id))); }
public new static Survey Find(int id) { return((Survey)ActiveRecordBase.FindByPrimaryKey(typeof(Survey), id)); }
public static uf_CarGPS_WFRangeOperateRecord Find(int id) { return((uf_CarGPS_WFRangeOperateRecord)(ActiveRecordBase.FindByPrimaryKey(typeof(uf_CarGPS_WFRangeOperateRecord), id))); }
public new static Client Find(int id) { return((Client)ActiveRecordBase.FindByPrimaryKey(typeof(Client), id)); }
public static Post Find(int id) { return((Post)ActiveRecordBase.FindByPrimaryKey(typeof(Post), id)); }
/// <summary> /// 根据主键获取实体 /// </summary> /// <returns>ID</returns> public T GetEntity(int ID) { return(ActiveRecordBase.FindByPrimaryKey(typeof(T), ID) as T); }
public static ReferenceEstrato Find(int id) { return((ReferenceEstrato)ActiveRecordBase.FindByPrimaryKey(typeof(ReferenceEstrato), id)); }
public static Workflow_requestbase Find(int id) { return((Workflow_requestbase)(ActiveRecordBase.FindByPrimaryKey(typeof(Workflow_requestbase), id))); }
public static NullableModel Find(int id) { return((NullableModel)ActiveRecordBase.FindByPrimaryKey(typeof(NullableModel), id)); }
/// <summary> /// 得到实体 /// </summary> /// <param name="id"></param> /// <returns></returns> public T GetEntity(int id) { return(ActiveRecordBase.FindByPrimaryKey(typeof(T), id, false) as T); }
public static Product Find(int id) { return((Product)(ActiveRecordBase.FindByPrimaryKey(typeof(Product), id))); }
public new static PersonEntity Find(int id) { return((PersonEntity)ActiveRecordBase.FindByPrimaryKey(typeof(PersonEntity), id)); }
public static Employee Find(int id) { return((Employee)(ActiveRecordBase.FindByPrimaryKey(typeof(Employee), id))); }
public static Entity Find(int id) { return((Entity)ActiveRecordBase.FindByPrimaryKey(typeof(Entity), id)); }
public static workflow_bill Find(int id) { return((workflow_bill)(ActiveRecordBase.FindByPrimaryKey(typeof(workflow_bill), id))); }
public new static Repository Find(int id) { return((Repository)ActiveRecordBase.FindByPrimaryKey(typeof(Repository), id)); }
public static SurveyEstrato Find(int id) { return((SurveyEstrato)ActiveRecordBase.FindByPrimaryKey(typeof(SurveyEstrato), id)); }
/// <summary> /// 根据主键获取实体 /// </summary> public T GetEntity(int id) { return((T)ActiveRecordBase.FindByPrimaryKey(typeof(T), id)); }