eisk.webapi
eisk.webapi copied to clipboard
Raw SQL command excusion
public class EntityDataService<TEntity> : IEntityDataService<TEntity> where TEntity : class, new() { ... public virtual async Task SqlCommand(string SqlString) { await DbContext.Database.ExecuteSqlCommandAsync(SqlString); } } /////////////////////////////////////////////////////////////////////////////// public interface IEntityDataService<TEntity> where TEntity : class, new() { ... Task SqlCommand(string SqlString); } ///Please consider to add raw sql command execution.