What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-01-30 18:01:20
Search or Filter Data in GridView c#
DataTable dtSales = new DataTable(); string filterField = "Country"; private void Form1_Load(object sender, EventArgs e) { dtSales.Columns.Add("Country", typeof(string)); dtSales.Columns.Add("Sales", typeof(int)); ... Add solution -
Other 2022-01-23 06:20:30
entity fast insert recordset
// at some point in my calling code, I will call: var myDataTable = CreateMyDataTable(); myDataTable.Rows.Add(Guid.NewGuid,tableHeaderId,theName,theValue); // e.g. - need this call for each row to insert var efConnectionString = ConfigurationManager.Conn... Add solution -
C# 2021-11-21 20:58:22
IQueryable Query camleCase properties
private static Expression<Func<T, bool>> CreateLike<T>(PropertyInfo prop, string value) { var parameter = Expression.Parameter(typeof(T), "f"); var propertyAccess = Expression.MakeMemberAccess(parameter,... Add solution -
C# 2021-11-03 13:37:16
c# reflection create generic type
Type generic = typeof(Dictionary<,>); // Create an array of types to substitute for the type parameters of Dictionary. The key is of type string, and the type to be contained in the Dictionary is Test. Type[] typeArgs = { typeof(string), typeof(Tes... Add solution -
C# 2021-10-23 22:00:20
check property type of collection c#
var obj = new PropClassDemo(); foreach (PropertyInfo prop in obj.GetType().GetProperties()) { if(prop.PropertyType != typeof(string) && typeof(IEnumerable).IsAssignableFrom(prop.PropertyType)) { Console.Writeline("This prop's type is Ienu... Add solution -
SQL 2021-10-19 18:54:08
whenever i'm passing data from datatable to sql table for large number in table it is storing with e+
change the datatype for every column of datatable and on sql side by using convert or cast function you can change it to another type DataTable dt = new DataTable(); dt.columns.Add(1, typeof(string)); dt.columns.Add(2, typeof(string)); Add solution -
C# 2021-10-08 19:10:03
decimals not stored in azure tables
public class CustomTableEntity : TableEntity { public override void ReadEntity(IDictionary<string, EntityProperty> properties, OperationContext operationContext) { base.ReadEntity(properties, operationContext); foreach (var ... Add solution
Best helpers
Noname
+5
Davidw20
+5
Herman Deep
+5
Ornello
+5
Fogwright
+5
Rob Deary
+5
Jonny Five
+5
Van L
+5
Vaishnavi
+5
Dan Nestor
+5