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); }
// by ahmed public bool Insert(ref int ContentEntityId, string ContentEntityType) { ContentEntityDAC contententityComponent = new ContentEntityDAC(); return contententityComponent.InsertNewContentEntity(ref ContentEntityId, ContentEntityType, Guid.NewGuid(), DateTime.Today); }
public bool Insert( string ContentEntityType, Guid RowGuid, DateTime ModifiedDate) { ContentEntityDAC contententityComponent = new ContentEntityDAC(); int ContentEntityId = 0; return contententityComponent.InsertNewContentEntity( ref ContentEntityId, ContentEntityType, RowGuid, ModifiedDate); }
public bool Insert(ContentEntity contententity) { int autonumber = 0; ContentEntityDAC contententityComponent = new ContentEntityDAC(); bool endedSuccessfuly = contententityComponent.InsertNewContentEntity( ref autonumber, contententity.ContentEntityType, contententity.RowGuid, contententity.ModifiedDate); if(endedSuccessfuly) { contententity.ContentEntityId = autonumber; } return endedSuccessfuly; }