csla

Create temp table with Entity Framework

一笑奈何 提交于 2019-12-10 14:17:29
问题 I want to create a temp table in sql server by using Entity Framework. Is there any way I can do this? If I can create a temp table, my next question is, how I can read it? Thanks in advance. André 回答1: Ok, so you don't like the stored procedures route....nor do I to be honest, but it's the quickest way I could think of doing it. Based on that, I don't know of any easy way in EDM to create temp tables so my next suggestion would be to create local objects, which mimic the temporary table you

Error deleting a record using Linq2SQL

寵の児 提交于 2019-12-10 13:36:03
问题 I've received an error report from a client recently and am having no luck resolving it. I'm hoping someone can give me some insight to what may be wrong. The error seems simple enough: Csla.DataPortalException: DataPortal.Delete failed (System.InvalidOperationException: Sequence contains more than one element at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source) Here is my DataPortal_Delete method, which takes the FileId (PK) as a parameter. private void DataPortal_Delete

Return Value Using SqlCommand

妖精的绣舞 提交于 2019-12-10 13:17:41
问题 I'm trying to get the result set and return value of a stored proc on SQL 2008 server. When I run the proc in sql management studio, I get the result set and the return value. However, when I try to get the value in C# 4.0, the value of the parameter is null. Here is my C# code: using (ConnectionManager<SqlConnection> cn = ConnectionManager<SqlConnection>.GetManager(CultureInfo.CurrentCulture.Name)) { using (SqlCommand cm = cn.Connection.CreateCommand()) { cm.CommandText = "Name of proc here"

Is it possible to use .NET Remoting + TLS 1.2 (or 1.1)?

余生颓废 提交于 2019-12-07 10:34:47
问题 Recently our PCI DSS scan failed, and requires that we disable TLS 1.0 (and enable TLS 1.1 or 1.2). I found the instructions on how to do so on our Windows Server 2008 R2 box, but we have a legacy application that is using .NET Remoting (its a .NET 2.0 windows forms app/IIS hosted CSLA 1.5 data portal), which doesn't communicate with the new settings. I am getting the following exception: I have attempted various configurations of combinations of TLS settings in both client and server to no

Is Asp.Net MVC + CSLA + DDD Possible

半世苍凉 提交于 2019-12-06 02:27:58
问题 I was asked to review a system the other day that was based on ASP.NET MVC + CSLA + DDD (domain drive design). The first version of this system was based on ASP.NET MVC + CSLA. The second release was based on that plus added DDD. The reason is because..... well, I don't know what. As I looked at the diagrams from the two different architectures, it was pretty apparent that the second version was extremely more complex. The CSLA objects basically used the Domain objects. When you see something

Hanging Linq query with Guid.Empty in the where expression

坚强是说给别人听的谎言 提交于 2019-12-06 02:08:47
I'm having an issue with the following code: private void DataPortal_Fetch(TaskCriteria criteria) { using (var ctx = ContextManager<Gimli.Data.GimliDataContext> .GetManager(Database.ApplicationConnection, false)) { this.RaiseListChangedEvents = false; this.IsReadOnly = false; IQueryable<Data.Task> query = ctx.DataContext.Tasks; if (criteria.ReadyForPricing) { query = query.Where(row => row.IsPriced != true); query = query.Where(row => row.Status == (int)TaskStatus.Closed); query = query.Where(row => row.InvoiceId == Guid.Empty); } if (criteria.ReadyForInvoicing) { query = query.Where(row =>

Is Asp.Net MVC + CSLA + DDD Possible

▼魔方 西西 提交于 2019-12-04 09:11:06
I was asked to review a system the other day that was based on ASP.NET MVC + CSLA + DDD (domain drive design). The first version of this system was based on ASP.NET MVC + CSLA. The second release was based on that plus added DDD. The reason is because..... well, I don't know what. As I looked at the diagrams from the two different architectures, it was pretty apparent that the second version was extremely more complex. The CSLA objects basically used the Domain objects. When you see something like this you know it already smells but it is hard to justify why someone shouldn't do it this way

Have you ever used CSLA? [duplicate]

萝らか妹 提交于 2019-12-03 17:07:46
Possible Duplicate: Does anyone have any real-world experience of CSLA? Have you ever used CSLA and if so what are yout thoughts? I am starting a new contract for a company that uses CSLA and NHibernate and wanted some opinions or insights into the framework. My opinion: The book is excellent. It taught me a lot about .NET and design in general I don't agree with the design of CSLA, thus I would never use it :) Take the ideas, and use what is valuable to you. CSLA doesn't stand on its own as an ORM, it just provides the object framework. It's fully acceptable to write your own (if you even

How can I learn CSLA.NET Fast?

◇◆丶佛笑我妖孽 提交于 2019-12-03 14:31:39
问题 I'd like to learn CSLA.NET quickly. What advice do you have? 回答1: The answer to this question all depends on your definition of the words "learn" and "fast". In my experience, no one ever learns anything fast. That being said I would suggest you visit Rockford Lhotka's site and check out the forums and books that are there. http://www.lhotka.net/cslanet/ http://forums.lhotka.net/ 回答2: I would suggest downloading the CSLA source code and the samples (especially the ProjectTracker sample) and

How can I learn CSLA.NET Fast?

可紊 提交于 2019-12-03 03:29:29
I'd like to learn CSLA.NET quickly. What advice do you have? The answer to this question all depends on your definition of the words "learn" and "fast". In my experience, no one ever learns anything fast. That being said I would suggest you visit Rockford Lhotka's site and check out the forums and books that are there. http://www.lhotka.net/cslanet/ http://forums.lhotka.net/ I would suggest downloading the CSLA source code and the samples (especially the ProjectTracker sample) and take a look at the code. The best way for me to learn something fast is to build something. To start writing