public static DirectoryObjectsEntity ReaderBind(IDataReader dataReader) { DirectoryObjectsEntity model = new DirectoryObjectsEntity(); object ojb; ojb = dataReader["ID"]; if (ojb != null && ojb != DBNull.Value) { model.ID = (int)ojb; } ojb = dataReader["DirectoryID"]; if (ojb != null && ojb != DBNull.Value) { model.DirectoryID = (int)ojb; } model.Type = dataReader["Type"].ToString(); model.Logo = dataReader["Logo"].ToString(); ojb = dataReader["ObjectID"]; if (ojb != null && ojb != DBNull.Value) { model.ObjectID = (int)ojb; } ojb = dataReader["CreatedOn"]; if (ojb != null && ojb != DBNull.Value) { model.CreatedOn = (DateTime)ojb; } ojb = dataReader["CreatedBy"]; if (ojb != null && ojb != DBNull.Value) { model.CreatedBy = (int)ojb; } ojb = dataReader["ModifiedOn"]; if (ojb != null && ojb != DBNull.Value) { model.ModifiedOn = (DateTime)ojb; } ojb = dataReader["ModifiedBy"]; if (ojb != null && ojb != DBNull.Value) { model.ModifiedBy = (int)ojb; } return(model); }
public bool Update(SunNet.PMNew.Entity.FileModel.DirectoryObjectsEntity entity) { throw new NotImplementedException(); }