Search Results for

    Show / Hide Table of Contents

    Class FileEntity

    Inherit this base class in order to create your own File Entities

    Inheritance
    Object
    Entity
    FileEntity
    Implements
    IEntity
    Inherited Members
    Entity.ID
    Entity.GenerateNewID()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: MongoDB.Entities
    Assembly: MongoDB.Entities.dll
    Syntax
    public abstract class FileEntity : Entity, IEntity

    Properties

    ChunkCount

    The number of chunks that have been created so far

    Declaration
    [BsonElement]
    public int ChunkCount { get; }
    Property Value
    Type Description
    Int32

    Data

    Access the DataStreamer class for uploading and downloading data

    Declaration
    public DataStreamer Data { get; }
    Property Value
    Type Description
    DataStreamer

    FileSize

    The total amount of data in bytes that has been uploaded so far

    Declaration
    [BsonElement]
    public long FileSize { get; }
    Property Value
    Type Description
    Int64

    MD5

    If this value is set, the uploaded data will be hashed and matched against this value. If the hash is not equal, an exception will be thrown by the UploadAsync() method.

    Declaration
    public string MD5 { get; set; }
    Property Value
    Type Description
    String

    UploadSuccessful

    Returns true only when all the chunks have been stored successfully in mongodb

    Declaration
    [BsonElement]
    public bool UploadSuccessful { get; }
    Property Value
    Type Description
    Boolean

    Implements

    IEntity

    Extension Methods

    Extensions.Collection<T>(T)
    Extensions.CollectionName<T>(T)
    Extensions.Database<T>(T)
    Extensions.DatabaseName<T>(T)
    Extensions.DeleteAsync<T>(T, IClientSessionHandle, CancellationToken)
    Extensions.Fluent<T>(T, IClientSessionHandle, AggregateOptions)
    Extensions.InsertAsync<T>(T, IClientSessionHandle, CancellationToken)
    Extensions.NextSequentialNumberAsync<T>(T, CancellationToken)
    Extensions.Queryable<T>(T, AggregateOptions)
    Extensions.SaveAsync<T>(T, IClientSessionHandle, CancellationToken)
    Extensions.SaveExceptAsync<T>(T, IEnumerable<String>, IClientSessionHandle, CancellationToken)
    Extensions.SaveExceptAsync<T>(T, Expression<Func<T, Object>>, IClientSessionHandle, CancellationToken)
    Extensions.SaveOnlyAsync<T>(T, IEnumerable<String>, IClientSessionHandle, CancellationToken)
    Extensions.SaveOnlyAsync<T>(T, Expression<Func<T, Object>>, IClientSessionHandle, CancellationToken)
    Extensions.SavePreservingAsync<T>(T, IClientSessionHandle, CancellationToken)
    Extensions.ToDocument<T>(T)
    Extensions.ToReference<T>(T)
    Extensions.InitManyToMany<TChild>(IEntity, Expression<Func<Many<TChild>>>, Expression<Func<TChild, Object>>)
    Extensions.InitOneToMany<TChild>(IEntity, Expression<Func<Many<TChild>>>)
    In this article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX