c#-4.0
public T Add<T>(T entity) | I have three types of collections, how to know which to add the entity?
I have an interface IRepository to abstract my repository: Fake repository public class Repository : IRepository[详细]
2023-04-11 12:24 分类:问答Repeated code in databound controls
I\'m sure I\'m missing something obvious here. I have a about twenty data-bound GridViews, each of which share some common features. Let\'s say they\'re 开发者_运维问答all lists of people, and every[详细]
2023-04-11 11:34 分类:问答Windows Services communicating via MSMQs - Do I need a service bus?
I have this problem where a system contains nodes (windows services) that push messages to be 开发者_如何学运维processed and others that pull messages and process them.[详细]
2023-04-11 09:53 分类:问答What is the best way to handle a line custom control?
I am writing a Database Diagram tool (in VS 2010, C# 4.0) and I am having an issue. I have written the TableEntity custom controls and now I need to write the Relationship control. But I\'m not sure o[详细]
2023-04-11 08:19 分类:问答how to save only time in database without date
How to save only time of day in database without saving date? I am trying this statement but its save date and time:[详细]
2023-04-11 07:41 分类:问答Create Dynamic Textbox and Get values
I want to create dynamic text box when user click on Add more link button. For this I am using this code. And I have to mention that I am using master page.[详细]
2023-04-11 07:36 分类:问答EF 4.1 Code First complex type with inheritance TPH
Is it possible to use a complex type of inheritance TPH in EF 4.1? [ComplexType] public class Unit { public double Value { get; set; }[详细]
2023-04-11 07:19 分类:问答how to force netwtonsoft json serializer to serialize datetime property to string?
I am using Newtonsoft\'s Json when i serialze a date time property i get the json r开发者_运维技巧esponse as:[详细]
2023-04-11 06:38 分类:问答How to have LINQ do a CAST() in SQL Server?
I have a开发者_JAVA百科 table in SQL Server with an entry that came from: INSERT INTO table(data) VALUES CAST(getdate() AS BINARY(8))[详细]
2023-04-11 01:54 分类:问答WCF XmlNode : Can't serialize
I am rewriting a legacy asp.net web service (.asmx) in WCF. The legacy service exposed a method argument of type XmlNode. Seems like in WCF the XmlNode type cannot be serialized开发者_StackOverflow. I[详细]
2023-04-11 00:12 分类:问答