Example #1
0
        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);
        }
Example #2
0
 // by ahmed
 public bool Insert(ref int ContentEntityId, string ContentEntityType)
 {
     ContentEntityDAC contententityComponent = new ContentEntityDAC();
     return contententityComponent.InsertNewContentEntity(ref ContentEntityId, ContentEntityType, Guid.NewGuid(), DateTime.Today);
 }
Example #3
0
        public bool Insert( string ContentEntityType,  Guid RowGuid,  DateTime ModifiedDate)
        {
            ContentEntityDAC contententityComponent = new ContentEntityDAC();
            int ContentEntityId = 0;

            return contententityComponent.InsertNewContentEntity( ref ContentEntityId,  ContentEntityType,  RowGuid,  ModifiedDate);
        }
Example #4
0
 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;
 }