What do you want to save?
Add Code snippet
New code examples
-
SQL 2021-10-23 03:36:10
generic repository pattern c# entity framework core execute mysql storeprocedure
public class Repository : IRepository where T : class { public DbContext context; public DbSet dbSet; public Repository(DbContext context) { this.context = context; dbSet = context.Set(); ... Add solution -
Python 2021-10-20 01:32:07
python format inverse
>>> import parse >>> format_string = 'PN-{:0>9}' >>> id = 123 >>> pn = format_string.format(id) >>> pn 'PN-000000123' >>> parsed = parse.parse(format_string, pn) >>> parsed <Result ('123... Add solution -
C# 2021-10-19 02:12:09
Reading Excel files from C#
var fileName = string.Format("{0}\\fileNameHere", Directory.GetCurrentDirectory()); var connectionString = string.Format("Provider=Microsoft.Jet.OLEDB.4.0; data source={0}; Extended Properties=Excel 8.0;", fileName); var adapter = new... Add solution