internal static G.Document ToGlobal(this C.Document entity)
 {
     return(new G.Document
     {
         Id = entity.Id,
         Name = entity.Filename,
         Created = entity.Created,
         Body = entity.Body,
         Size = entity.Size,
         Checksum = entity.Checksum,
         Deleted = entity.Deleted,
         AuthorEmployee = entity.AuthorEmployee
     });
 }
Example #2
0
        internal static G.Document ToGlobal(this C.Document document)
        {
            return(new G.Document()
            {
                Id = document.Id,
                Name = document.Name,
                Description = document.Description,
                CreateDate = document.CreateDate,
                Extention = document.Extention,
                EmployeeId = document.EmployeeId,
                FileBinId = document.FileBinId,
                OldFileId = document.OldFileId,
                Size = document.Size
            });

            //string name, string description, DateTime createDate,float size, string extention, int employeeId, int fileBinId
        }