public override TaskAssignedObject CreateNewData(DataRow row) { SchemaType type = (SchemaType)Enum.Parse(typeof(SchemaType), row["ASSIGNEE_TYPE"].ToString(), true); IOguObject obj = OguBase.CreateWrapperObject(row["ASSIGNEE_ID"].ToString(), type); TaskAssignedObject result = new TaskAssignedObject(); result.Assignee = obj; return(result); }
public T this[int index] { get { return((T)List[index]); } set { ExceptionHelper.FalseThrow <ArgumentNullException>(value != null, "value"); IOguObject data = value; if ((value is OguBase) == false) { data = OguBase.CreateWrapperObject(value); } List[index] = data; } }
protected virtual OguBase CreateOguObject(SchemaType oguType, string id) { return((OguBase)OguBase.CreateWrapperObject(id, oguType)); }
protected override void InnerAdd(T obj) { obj = (T)OguBase.CreateWrapperObject(obj); base.InnerAdd(obj); }