public SystemFolder GetByID(int _systemFolderId) { SystemFolderDAC _systemFolderComponent = new SystemFolderDAC(); IDataReader reader = _systemFolderComponent.GetByIDSystemFolder(_systemFolderId); SystemFolder _systemFolder = null; while(reader.Read()) { _systemFolder = new SystemFolder(); if(reader["SystemFolderId"] != DBNull.Value) _systemFolder.SystemFolderId = Convert.ToInt32(reader["SystemFolderId"]); if(reader["Name"] != DBNull.Value) _systemFolder.Name = Convert.ToString(reader["Name"]); if(reader["Path"] != DBNull.Value) _systemFolder.Path = Convert.ToString(reader["Path"]); _systemFolder.NewRecord = false; } reader.Close(); return _systemFolder; }
public List<SystemFolder> GetAll() { SystemFolderDAC _systemFolderComponent = new SystemFolderDAC(); IDataReader reader = _systemFolderComponent.GetAllSystemFolder().CreateDataReader(); List<SystemFolder> _systemFolderList = new List<SystemFolder>(); while(reader.Read()) { if(_systemFolderList == null) _systemFolderList = new List<SystemFolder>(); SystemFolder _systemFolder = new SystemFolder(); if(reader["SystemFolderId"] != DBNull.Value) _systemFolder.SystemFolderId = Convert.ToInt32(reader["SystemFolderId"]); if(reader["Name"] != DBNull.Value) _systemFolder.Name = Convert.ToString(reader["Name"]); if(reader["Path"] != DBNull.Value) _systemFolder.Path = Convert.ToString(reader["Path"]); _systemFolder.NewRecord = false; _systemFolderList.Add(_systemFolder); } reader.Close(); return _systemFolderList; }
public bool Insert(string Name, string Path) { // insert new content entity ContentEntityDAC ContentEntityComponent = new ContentEntityDAC(); Int32 SystemFolderId = 0; ContentEntityComponent.InsertNewContentEntity(ref SystemFolderId, "SF", Guid.NewGuid(), DateTime.Today); // insert new system folder SystemFolderDAC systemfolderComponent = new SystemFolderDAC(); return systemfolderComponent.InsertNewSystemFolder(SystemFolderId, Name, Path); }
public bool Insert(SystemFolder systemfolder) { SystemFolderDAC systemfolderComponent = new SystemFolderDAC(); return systemfolderComponent.InsertNewSystemFolder( systemfolder.SystemFolderId, systemfolder.Name, systemfolder.Path); }
public void Delete(int Original_SystemFolderId) { SystemFolderDAC systemfolderComponent = new SystemFolderDAC(); systemfolderComponent.DeleteSystemFolder(Original_SystemFolderId); BusinessLogicLayer.Common.ContentEntityLogic.Delete(Original_SystemFolderId); }
public int UpdateDataset(System.Data.DataSet dataset) { SystemFolderDAC systemfoldercomponent = new SystemFolderDAC(); return systemfoldercomponent.UpdateDataset(dataset); }
public bool Update( int SystemFolderId, string Name, string Path, int Original_SystemFolderId) { SystemFolderDAC systemfolderComponent = new SystemFolderDAC(); return systemfolderComponent.UpdateSystemFolder( SystemFolderId, Name, Path, Original_SystemFolderId); }
public bool Update(SystemFolder systemfolder ,int old_systemFolderId) { SystemFolderDAC systemfolderComponent = new SystemFolderDAC(); return systemfolderComponent.UpdateSystemFolder( systemfolder.SystemFolderId, systemfolder.Name, systemfolder.Path, old_systemFolderId); }