public class EntityDataService : IEntityDataService where TEntity : class, new()
{
...
public virtual async Task SqlCommand(string SqlString)
{
await DbContext.Database.ExecuteSqlCommandAsync(SqlString);
}
}
///////////////////////////////////////////////////////////////////////////////
public interface IEntityDataService where TEntity : class, new()
{
...
Task SqlCommand(string SqlString);
}
///Please consider to add raw sql command execution.
public class EntityDataService : IEntityDataService where TEntity : class, new()
{
...
public virtual async Task SqlCommand(string SqlString)
{
await DbContext.Database.ExecuteSqlCommandAsync(SqlString);
}
}
///////////////////////////////////////////////////////////////////////////////
public interface IEntityDataService where TEntity : class, new()
{
...
Task SqlCommand(string SqlString);
}
///Please consider to add raw sql command execution.